From f22e207b5d4ba222cd4f20a25b94f6dd4e356540 Mon Sep 17 00:00:00 2001 From: spapa013 Date: Wed, 1 Dec 2021 10:37:52 -0600 Subject: [PATCH 1/2] load dependencies on module import --- .../h01_materialization/h01_materialization.py | 3 ++- .../minnie_materialization/minnie65_materialization.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python/microns-materialization/microns_materialization/h01_materialization/h01_materialization.py b/python/microns-materialization/microns_materialization/h01_materialization/h01_materialization.py index f176ba6..5930220 100644 --- a/python/microns-materialization/microns_materialization/h01_materialization/h01_materialization.py +++ b/python/microns-materialization/microns_materialization/h01_materialization/h01_materialization.py @@ -24,4 +24,5 @@ # Schema creation schema = dj.schema(schema_obj.value) -schema.spawn_missing_classes() \ No newline at end of file +schema.spawn_missing_classes() +schema.connection.dependencies.load() \ No newline at end of file diff --git a/python/microns-materialization/microns_materialization/minnie_materialization/minnie65_materialization.py b/python/microns-materialization/microns_materialization/minnie_materialization/minnie65_materialization.py index c2ca3e9..da6d7c7 100644 --- a/python/microns-materialization/microns_materialization/minnie_materialization/minnie65_materialization.py +++ b/python/microns-materialization/microns_materialization/minnie_materialization/minnie65_materialization.py @@ -25,7 +25,8 @@ # Schema creation schema = dj.schema(schema_obj.value) -# schema.spawn_missing_classes() +schema.spawn_missing_classes() +schema.connection.dependencies.load() @schema class Materialization(dj.Manual): From bddf4d391a3331b305da29ecbdc286e6aca4ac73 Mon Sep 17 00:00:00 2001 From: spapa013 Date: Fri, 3 Dec 2021 18:08:30 -0600 Subject: [PATCH 2/2] fix __version__ in setup.py --- python/microns-materialization/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/microns-materialization/setup.py b/python/microns-materialization/setup.py index 0ebd2ec..04c3278 100644 --- a/python/microns-materialization/setup.py +++ b/python/microns-materialization/setup.py @@ -16,7 +16,7 @@ def find_api(name): setup( name='microns_materialization', - version='0.0.1', + version=__version__, description='Datajoint schemas for importing external data for the MICrONS project', author='Stelios Papadopoulos', author_email='spapadop@bcm.edu',