Skip to content

Commit

Permalink
Add fixes to notebooks.
Browse files Browse the repository at this point in the history
Revert compatiblity in anticipation of merge.
  • Loading branch information
morriscb committed Sep 27, 2023
1 parent 22106c4 commit cb5c52a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def sanitize_data_columns(


class BehaviorProjectCloudApi(BehaviorProjectBase, ProjectCloudApiBase):
MANIFEST_COMPATIBILITY = ["0.0.0", "2.0.0"]
MANIFEST_COMPATIBILITY = ["1.0.0", "2.0.0"]

def _load_manifest_tables(self):
expected_metadata = set(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@
" '''\n",
" table = stimulus_presentations\n",
" change_frame = row['change_frame']\n",
" if np.isnan(change_frame):\n",
" if np.isnan(change_frame) or change_frame < 0:\n",
" return np.nan\n",
" \n",
" change_time = table[table.start_frame==change_frame]\\\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1445,12 +1445,12 @@
" # read in LocallySparseNoise output and display it\n",
" off_receptive_field = Image.open(Path(resources_dir) /\n",
" 'brain_observatory_analysis' /\n",
" 'off_receptive_field.png')\n",
" 'off_receptive_field.png').convert('RGB')\n",
" display(off_receptive_field)\n",
"\n",
" on_receptive_field = Image.open(Path(resources_dir) /\n",
" 'brain_observatory_analysis' /\n",
" 'on_receptive_field.png')\n",
" 'on_receptive_field.png').convert('RGB')\n",
" display(on_receptive_field)"
]
}
Expand Down
4 changes: 2 additions & 2 deletions doc_template/examples_root/examples/nb/ecephys_session.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -150677,7 +150677,7 @@
"else:\n",
" lfp_plot = Image.open(Path(resources_dir) /\n",
" 'ecephys_session' /\n",
" 'lfp_plot.png')\n",
" 'lfp_plot.png').convert('RGB')\n",
" display(lfp_plot)"
]
},
Expand Down Expand Up @@ -150778,7 +150778,7 @@
"else:\n",
" filtered_csd_plot = Image.open(Path(resources_dir) /\n",
" 'ecephys_session' /\n",
" 'filtered_csd_plot.png')\n",
" 'filtered_csd_plot.png').convert('RGB')\n",
" display(filtered_csd_plot)"
]
},
Expand Down

0 comments on commit cb5c52a

Please sign in to comment.