From ade56a91da76a8cb758e2ae905b97f9d10c40a0a Mon Sep 17 00:00:00 2001 From: Chris Broz Date: Fri, 22 Jul 2022 10:46:00 -0500 Subject: [PATCH] Update changelog; Typo in NB 02; remove dummy func from export --- CHANGELOG.md | 5 +++++ notebooks/02-workflow-structure-optional.ipynb | 2 +- workflow_array_ephys/export.py | 12 +----------- 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0276d7ae..da226b77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/notebooks/02-workflow-structure-optional.ipynb b/notebooks/02-workflow-structure-optional.ipynb index d2e6fab7..16b63998 100644 --- a/notebooks/02-workflow-structure-optional.ipynb +++ b/notebooks/02-workflow-structure-optional.ipynb @@ -188,7 +188,7 @@ "\n", "- `()` 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" ] }, { diff --git a/workflow_array_ephys/export.py b/workflow_array_ephys/export.py index c7ce87bc..3cf76a3a 100644 --- a/workflow_array_ephys/export.py +++ b/workflow_array_ephys/export.py @@ -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)