Skip to content

Commit

Permalink
Update changelog; Typo in NB 02; remove dummy func from export
Browse files Browse the repository at this point in the history
  • Loading branch information
CBroz1 committed Jul 22, 2022
1 parent 81fd1ca commit ade56a9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Observes [Semantic Versioning](https://semver.org/spec/v2.0.0.html) standard and
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/) convention.

## [0.2.1] - 2022-07-22
+ Add - Mention CodeBook data directory in notebooks
+ Update - Remove directory assertion in notebooks for CodeBook deployment
+ Update - Move all export functions from `pipeline` to `export` script

## [0.2.0] - 2022-07-08

+ Add - Adopt black formatting into code base
Expand Down
2 changes: 1 addition & 1 deletion notebooks/02-workflow-structure-optional.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"\n",
"- `<table>()` show table contents\n",
"- `heading` shows attribute definitions\n",
"- `describe()` show table defintiion with foreign key references"
"- `describe()` show table definition with foreign key references"
]
},
{
Expand Down
12 changes: 1 addition & 11 deletions workflow_array_ephys/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,14 @@
"element_lab_to_nwb_dict",
"subject_to_nwb",
"session_to_nwb",
"ecephys_session_to_nwb",
"write_nwb",
]

# Import ephys NWB export functions
if ephys_mode == "no-curation":
from element_array_ephys.export.nwb import ecephys_session_to_nwb, write_nwb
else:
missing_ephys_warning = (
print(
f"Warning: ephys export requires the no-curation ephys_mode. To use it,\n\t"
+ "try setting datajoint.config['custom']['ephys_mode'] to 'no-curation'\n\t"
+ "and restarting your kernel."
)

def ecephys_session_to_nwb(*args):
return missing_ephys_warning

def write_nwb(*args):
return missing_ephys_warning

print(missing_ephys_warning)

0 comments on commit ade56a9

Please sign in to comment.