From 10530db9bf5acef069832b5f8fd288201c40dcd9 Mon Sep 17 00:00:00 2001 From: Ryan Ly Date: Sun, 26 Nov 2023 21:37:03 -0800 Subject: [PATCH] Clean up comments in create_extension_spec.py (#78) --- .../src/spec/create_extension_spec.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/{{ cookiecutter.namespace }}/src/spec/create_extension_spec.py b/{{ cookiecutter.namespace }}/src/spec/create_extension_spec.py index c9f25ff..847d478 100644 --- a/{{ cookiecutter.namespace }}/src/spec/create_extension_spec.py +++ b/{{ cookiecutter.namespace }}/src/spec/create_extension_spec.py @@ -20,17 +20,14 @@ def main(): "{{ email.strip() }}", {% endfor %} ], ) - - # TODO: specify either the neurodata types that are used by the extension - # or the namespaces that contain the neurodata types used. Including the - # namespace will include all neurodata types in that namespace. - # This is similar to specifying the Python modules that need to be imported - # to use your new data types. - # ns_builder.include_type("ElectricalSeries", namespace="core") ns_builder.include_namespace("core") + + # TODO: if your extension builds on another extension, include the namespace + # of the other extension below + # ns_builder.include_namespace("ndx-other-extension") # TODO: define your new data types - # see https://pynwb.readthedocs.io/en/latest/extensions.html#extending-nwb + # see https://pynwb.readthedocs.io/en/stable/tutorials/general/extensions.html # for more information tetrode_series = NWBGroupSpec( neurodata_type_def="TetrodeSeries", @@ -45,7 +42,6 @@ def main(): # export the spec to yaml files in the spec folder output_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "spec")) export_spec(ns_builder, new_data_types, output_dir) - print("Spec files generated. Please make sure to run `pip install .` to load the changes.") if __name__ == "__main__":