Skip to content

Commit 28ad7a4

Browse files
authored
Merge pull request #1848 from AllenInstitute/rc/2.7.0
rc/2.7.0
2 parents 64dd27a + 1597da8 commit 28ad7a4

File tree

84 files changed

+4660
-2999
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+4660
-2999
lines changed

.circleci/config.yml

Lines changed: 78 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1+
env-vars: &env-vars
2+
TEST_NWB_FILES: skip
3+
TEST_OBSERVATORY_EXPERIMENT_PLOTS_DATA: skip
4+
TEST_API_ENDPOINT: http://api.brain-map.org
5+
TEST_COMPLETE: false
6+
TEST_BAMBOO: false
7+
LIMS_DBNAME: db
8+
LIMS_PORT: 1234
9+
LIMS_PASSWORD: password
10+
LIMS_HOST: host
11+
LIMS_USER: user
12+
MTRAIN_DBNAME: db
13+
MTRAIN_USER: user
14+
MTRAIN_HOST: host
15+
MTRAIN_PORT: 1234
16+
MTRAIN_PASSWORD: password
17+
118
jobs:
219
linux-py36: &linux-template
320
executor:
421
name: python/default
522
tag: "3.6.12"
623
environment:
7-
TEST_NWB_FILES: skip
8-
TEST_OBSERVATORY_EXPERIMENT_PLOTS_DATA: skip
9-
TEST_API_ENDPOINT: http://api.brain-map.org
10-
TEST_COMPLETE: false
11-
TEST_BAMBOO: false
12-
LIMS_DBNAME: db
13-
LIMS_PORT: 1234
14-
LIMS_PASSWORD: password
15-
LIMS_HOST: host
16-
LIMS_USER: user
17-
MTRAIN_DBNAME: db
18-
MTRAIN_USER: user
19-
MTRAIN_HOST: host
20-
MTRAIN_PORT: 1234
21-
MTRAIN_PASSWORD: password
24+
<<: *env-vars
2225
steps:
2326
- checkout
2427
- run: sudo apt-get update
@@ -41,11 +44,71 @@ jobs:
4144
name: python/default
4245
tag: "3.7.7"
4346

47+
osx-py36:
48+
parameters:
49+
pyversion:
50+
default: "3.6.12"
51+
type: string
52+
macos:
53+
xcode: 11.3.0
54+
environment:
55+
<<: *env-vars
56+
steps:
57+
- checkout
58+
- run:
59+
command: |
60+
brew install wget
61+
name: Install Wget
62+
- run:
63+
command: |
64+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
65+
bash miniconda.sh -b -p $HOME/miniconda
66+
export PATH="$HOME/miniconda/bin:$PATH"
67+
hash -r
68+
conda config --set always_yes yes --set changeps1 no
69+
conda update -q conda
70+
conda create -q -n test-environment python=<<parameters.pyversion>> pip
71+
source activate test-environment
72+
name: Create conda test environment
73+
- run:
74+
command: |
75+
export PATH="$HOME/miniconda/bin:$PATH"
76+
source activate test-environment
77+
pip install codecov
78+
pip install -r test_requirements.txt
79+
pip install .
80+
name: Install Allensdk
81+
- run:
82+
command: |
83+
export PATH="$HOME/miniconda/bin:$PATH"
84+
source activate test-environment
85+
python -m pytest -n 4 --cov allensdk --cov-report xml
86+
name: Test
87+
88+
lint:
89+
executor: python/default
90+
steps:
91+
- checkout
92+
- run:
93+
command: |
94+
pip install flake8
95+
# `|| true` to force exit code 0 even if no files found
96+
CHANGED_PYFILES=$(git diff --name-only --diff-filter AM origin/master | grep .py || true)
97+
echo "List of changed files:"
98+
echo ${CHANGED_PYFILES}
99+
echo ${CHANGED_PYFILES} | xargs -r flake8 --count
100+
name: Lint
101+
44102
orbs:
45103
python: circleci/[email protected]
46104
version: 2.1
47105
workflows:
48106
main:
49107
jobs:
108+
# disable lint build, for merge to default branch
109+
# turn back on when rc/2.8.0 is started
110+
# - lint
50111
- linux-py36
51112
- linux-py37
113+
# disabled osx build. covered by github-actions
114+
# - osx-py36
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: ci/github-actions
2+
on: [pull_request]
3+
env:
4+
TEST_NWB_FILES: skip
5+
TEST_OBSERVATORY_EXPERIMENT_PLOTS_DATA: skip
6+
TEST_API_ENDPOINT: http://api.brain-map.org
7+
TEST_COMPLETE: false
8+
TEST_BAMBOO: false
9+
LIMS_DBNAME: db
10+
LIMS_PORT: 1234
11+
LIMS_PASSWORD: password
12+
LIMS_HOST: host
13+
LIMS_USER: user
14+
MTRAIN_DBNAME: db
15+
MTRAIN_USER: user
16+
MTRAIN_HOST: host
17+
MTRAIN_PORT: 1234
18+
MTRAIN_PASSWORD: password
19+
20+
jobs:
21+
osx:
22+
name: ${{ matrix.python-version }}, ${{ matrix.os }}
23+
runs-on: ${{ matrix.os }}
24+
strategy:
25+
matrix:
26+
os: ["macos-latest", "windows-latest"]
27+
python-version: ["3.6", "3.7"]
28+
defaults:
29+
run:
30+
shell: bash -l {0}
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: conda-incubator/setup-miniconda@v2
34+
with:
35+
auto-update-conda: true
36+
python-version: ${{ matrix.python-version }}
37+
activate-environment: test-env
38+
- name: Install
39+
run: |
40+
conda activate test-env
41+
pip install codecov
42+
pip install -r test_requirements.txt
43+
pip install .
44+
- name: Test
45+
run: |
46+
py.test --cov=allensdk -n 4

.travis.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [2.7.0] = TBD
5+
- Refactored behavior and ophys session and data APIs to remove a circular inheritance issue
6+
- Fixed segmentation mask and roi_mask misregistration in 'BehaviorOphysSession'
7+
- Replaces BehaviorOphysSession.get_roi_masks() method with roi_masks property
8+
- Fixes bug which prevented the SDK from loading stimuli dataframes for static gratings
9+
- Return event detection data through session API
10+
- Read/write event detection data from/to NWB
11+
- Time stamps for events in trial_log are set to the exact sync timestamp of the corresponding frame.
12+
- For behavior-only sessions, sync-like timestamp of the first frame is set to zero.
13+
- stimulus_templates in Session API returns new object with key of image name
14+
- Refactored BehaviorOphysSession to inherit methods and properties from BehaviorSession
15+
- Fixed a test for checking that Behavior and BehaviorOphysSessions contain the same data regardless of which API (LIMS/JSON/NWB) is used. Also fixed resulting failure cases.
16+
417
## [2.6.0] = 2021-02-05
518
- Adds ability to write and read behavior only NWB files
619
- Adds eye tracking ellipse fits and metadata as new NWB data stream

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[![Join the chat at https://gitter.im/AllenInstitute/AllenSDK](https://badges.gitter.im/AllenInstitute/AllenSDK.svg)](https://gitter.im/AllenInstitute/AllenSDK?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
44
[![Documentation Status](https://readthedocs.org/projects/allensdk/badge/?version=latest)](https://allensdk.readthedocs.io/en/latest/?badge=latest)
5+
[![AllenInstitute](https://circleci.com/gh/AllenInstitute/AllenSDK.svg?style=svg)](https://app.circleci.com/pipelines/github/AllenInstitute/AllenSDK)
6+
[![Actions Status](https://github.com/AllenInstitute/AllenSDK/workflows/ci/github-actions/badge.svg)](https://github.com/AllenInstitute/AllenSDK/actions)
57

68

79
This repository contains code for processing and analyzing data
@@ -11,4 +13,4 @@ Please visit http://alleninstitute.github.io/AllenSDK for more information.
1113

1214
We welcome contributions! See the [contribution guide](CONTRIBUTING.md) here. See here for [the list of authors](doc_template/authors.rst).
1315

14-
If you have more general questions or comments about the AllenSDK please post them to the [Allen Brain Map Community Forum](https://community.brain-map.org).
16+
If you have more general questions or comments about the AllenSDK please post them to the [Allen Brain Map Community Forum](https://community.brain-map.org).

allensdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939

4040

41-
__version__ = '2.6.0'
41+
__version__ = '2.7.0'
4242

4343

4444
try:

0 commit comments

Comments
 (0)