Skip to content

Commit fc1ea9a

Browse files
authored
Merge pull request #672 from AllenInstitute/661
GH-661 update notebooks to not fail (redo onto master instead of internal)
2 parents 63f7bb8 + f11b60a commit fc1ea9a

File tree

8 files changed

+1974
-1784
lines changed

8 files changed

+1974
-1784
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ eggs/
1212
test-reports/*
1313
doc_template/examples/nb/connectivity/experiment_*
1414
doc_template/examples/nb/Website_Inquiry_RT_45792 /experiment_*
15+
doc_template/examples_root/examples/nb/*.zip
16+
doc_template/examples_root/examples/nb/*.json
17+
doc_template/examples_root/examples/nb/*.swc
18+
doc_template/examples_root/examples/nb/*.nrrd
19+
doc_template/examples_root/examples/nb/*.csv
20+
doc_template/examples_root/examples/nb/brain_observatory
21+
doc_template/examples_root/examples/nb/modfiles
22+
doc_template/examples_root/examples/nb/*.nbconvert.ipynb
1523
*pyc
1624
.eggs/
1725
.pytest_cache/

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ $(NOTEBOOKS):
7070

7171
notebooks: $(NOTEBOOKS)
7272

73+
notebooks-neuron:
74+
jupyter-nbconvert --to notebook --execute --ExecutePreprocessor.timeout=$(timeout) --ExecutePreprocessor.kernel_name=$(python_kernel) ./doc_template/examples_root/examples/nb/neuron/pulse_stimulus.ipynb
75+
76+
7377
FORCE:
7478

7579
clean:

allensdk/core/brain_observatory_nwb_data_set.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,13 @@ def get_motion_correction(self):
900900
if motion_correction is None:
901901
raise KeyError("Could not find motion correction data.")
902902

903+
# Python3 compatibility:
904+
rename_dict = {}
905+
for c in motion_correction.columns:
906+
if not isinstance(c, str):
907+
rename_dict[c] = c.decode("utf-8")
908+
motion_correction.rename(columns=rename_dict, inplace=True)
909+
903910
return motion_correction
904911

905912
def save_analysis_dataframes(self, *tables):

doc_template/examples_root/examples/nb/cell_specimen_mapping.ipynb

Lines changed: 52 additions & 26 deletions
Large diffs are not rendered by default.

doc_template/examples_root/examples/nb/neuron/pulse_stimulus.ipynb

Lines changed: 319 additions & 0 deletions
Large diffs are not rendered by default.

doc_template/examples_root/examples/nb/pulse_stimulus.ipynb

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

doc_template/examples_root/examples/nb/receptive_fields.ipynb

Lines changed: 51 additions & 82 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)