From ec066977e3ce77fc0af8f00e54250dde685e3965 Mon Sep 17 00:00:00 2001 From: spapa013 Date: Wed, 1 Dec 2021 10:37:34 -0600 Subject: [PATCH 01/11] load dependencies on module import --- .../auto_proofreading/h01_auto_proofreading.py | 1 + .../auto_proofreading/minnie65_auto_proofreading.py | 2 +- .../microns_morphology/h01_morphology/h01_morphology.py | 1 + .../microns_morphology/minnie_morphology/minnie65_morphology.py | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/python/microns-morphology/microns_morphology/auto_proofreading/h01_auto_proofreading.py b/python/microns-morphology/microns_morphology/auto_proofreading/h01_auto_proofreading.py index f98084c..ba254b2 100644 --- a/python/microns-morphology/microns_morphology/auto_proofreading/h01_auto_proofreading.py +++ b/python/microns-morphology/microns_morphology/auto_proofreading/h01_auto_proofreading.py @@ -9,4 +9,5 @@ schema = dj.schema(schema_obj.value) schema.spawn_missing_classes() +schema.connection.dependencies.load() diff --git a/python/microns-morphology/microns_morphology/auto_proofreading/minnie65_auto_proofreading.py b/python/microns-morphology/microns_morphology/auto_proofreading/minnie65_auto_proofreading.py index 8d5822e..c24590e 100644 --- a/python/microns-morphology/microns_morphology/auto_proofreading/minnie65_auto_proofreading.py +++ b/python/microns-morphology/microns_morphology/auto_proofreading/minnie65_auto_proofreading.py @@ -9,4 +9,4 @@ schema = dj.schema(schema_obj.value) schema.spawn_missing_classes() - +schema.connection.dependencies.load() diff --git a/python/microns-morphology/microns_morphology/h01_morphology/h01_morphology.py b/python/microns-morphology/microns_morphology/h01_morphology/h01_morphology.py index 32feb6c..0875273 100644 --- a/python/microns-morphology/microns_morphology/h01_morphology/h01_morphology.py +++ b/python/microns-morphology/microns_morphology/h01_morphology/h01_morphology.py @@ -9,3 +9,4 @@ schema = dj.schema(schema_obj.value) schema.spawn_missing_classes() +schema.connection.dependencies.load() \ No newline at end of file diff --git a/python/microns-morphology/microns_morphology/minnie_morphology/minnie65_morphology.py b/python/microns-morphology/microns_morphology/minnie_morphology/minnie65_morphology.py index 428d73d..788477b 100644 --- a/python/microns-morphology/microns_morphology/minnie_morphology/minnie65_morphology.py +++ b/python/microns-morphology/microns_morphology/minnie_morphology/minnie65_morphology.py @@ -9,3 +9,4 @@ schema = dj.schema(schema_obj.value) schema.spawn_missing_classes() +schema.connection.dependencies.load() \ No newline at end of file From 68d97164b128b8f5927c5c75b19307edb668c231 Mon Sep 17 00:00:00 2001 From: spapa013 Date: Tue, 21 Dec 2021 11:50:14 -0600 Subject: [PATCH 02/11] add newline --- .../microns-morphology-api/microns_morphology_api/__init__.py | 2 +- python/microns-morphology/microns_morphology/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/microns-morphology-api/microns_morphology_api/__init__.py b/python/microns-morphology-api/microns_morphology_api/__init__.py index e464b66..92e49c1 100644 --- a/python/microns-morphology-api/microns_morphology_api/__init__.py +++ b/python/microns-morphology-api/microns_morphology_api/__init__.py @@ -10,4 +10,4 @@ ) ) -check_latest_version_from_github = version_utils.latest_github_version_checker(owner='cajal', repo='microns-morphology') \ No newline at end of file +check_latest_version_from_github = version_utils.latest_github_version_checker(owner='cajal', repo='microns-morphology') diff --git a/python/microns-morphology/microns_morphology/__init__.py b/python/microns-morphology/microns_morphology/__init__.py index def5eec..f5252ec 100644 --- a/python/microns-morphology/microns_morphology/__init__.py +++ b/python/microns-morphology/microns_morphology/__init__.py @@ -10,4 +10,4 @@ ) ) -check_latest_version_from_github = version_utils.latest_github_version_checker(owner='cajal', repo='microns-morphology') \ No newline at end of file +check_latest_version_from_github = version_utils.latest_github_version_checker(owner='cajal', repo='microns-morphology') From 06e9ee6f5c8a75f97055b210afdc2ce2a52383ff Mon Sep 17 00:00:00 2001 From: spapa013 Date: Tue, 21 Dec 2021 11:56:13 -0600 Subject: [PATCH 03/11] get reassign_master_attribute from djp --- .../microns_morphology/auto_proofreading/__init__.py | 6 +++--- .../microns_morphology/h01_morphology/__init__.py | 4 ++-- .../microns_morphology/minnie_morphology/__init__.py | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/python/microns-morphology/microns_morphology/auto_proofreading/__init__.py b/python/microns-morphology/microns_morphology/auto_proofreading/__init__.py index b8b1653..3384a7f 100644 --- a/python/microns-morphology/microns_morphology/auto_proofreading/__init__.py +++ b/python/microns-morphology/microns_morphology/auto_proofreading/__init__.py @@ -1,5 +1,5 @@ -from microns_morphology_api import config +import datajoint.datajoint_plus as djp from . import h01_auto_proofreading, minnie65_auto_proofreading -config.register_bases(config.SCHEMAS.H01_AUTO_PROOFREADING, h01_auto_proofreading) -config.register_bases(config.SCHEMAS.MINNIE65_AUTO_PROOFREADING, minnie65_auto_proofreading) \ No newline at end of file +djp.reassign_master_attribute(h01_auto_proofreading) +djp.reassign_master_attribute(minnie65_auto_proofreading) \ No newline at end of file diff --git a/python/microns-morphology/microns_morphology/h01_morphology/__init__.py b/python/microns-morphology/microns_morphology/h01_morphology/__init__.py index 524930d..3f5f83b 100644 --- a/python/microns-morphology/microns_morphology/h01_morphology/__init__.py +++ b/python/microns-morphology/microns_morphology/h01_morphology/__init__.py @@ -1,4 +1,4 @@ -from microns_morphology_api import config +import datajoint.datajoint_plus as djp from . import h01_morphology -config.register_bases(config.SCHEMAS.H01_MORPHOLOGY, h01_morphology) \ No newline at end of file +djp.reassign_master_attribute(h01_morphology) \ No newline at end of file diff --git a/python/microns-morphology/microns_morphology/minnie_morphology/__init__.py b/python/microns-morphology/microns_morphology/minnie_morphology/__init__.py index 7f2d16e..eb047b3 100644 --- a/python/microns-morphology/microns_morphology/minnie_morphology/__init__.py +++ b/python/microns-morphology/microns_morphology/minnie_morphology/__init__.py @@ -1,4 +1,4 @@ -from microns_morphology_api import config +import datajoint.datajoint_plus as djp from . import minnie65_morphology -config.register_bases(config.SCHEMAS.MINNIE65_MORPHOLOGY, minnie65_morphology) \ No newline at end of file +djp.reassign_master_attribute(minnie65_morphology) \ No newline at end of file From b7002cf448b104f8b03f1c89ec9b1c6e6c7c6692 Mon Sep 17 00:00:00 2001 From: spapa013 Date: Tue, 21 Dec 2021 11:56:58 -0600 Subject: [PATCH 04/11] import module from api.schemas --- .../auto_proofreading/h01_auto_proofreading.py | 10 +--------- .../auto_proofreading/minnie65_auto_proofreading.py | 10 +--------- .../h01_morphology/h01_morphology.py | 10 +--------- .../minnie_morphology/minnie65_morphology.py | 10 +--------- 4 files changed, 4 insertions(+), 36 deletions(-) diff --git a/python/microns-morphology/microns_morphology/auto_proofreading/h01_auto_proofreading.py b/python/microns-morphology/microns_morphology/auto_proofreading/h01_auto_proofreading.py index ba254b2..4ef8edd 100644 --- a/python/microns-morphology/microns_morphology/auto_proofreading/h01_auto_proofreading.py +++ b/python/microns-morphology/microns_morphology/auto_proofreading/h01_auto_proofreading.py @@ -1,13 +1,5 @@ import datajoint as dj from datajoint import datajoint_plus as djp -from microns_morphology_api import config -schema_obj = config.SCHEMAS.H01_AUTO_PROOFREADING - -config.register_adapters(schema_obj, context=locals()) -config.register_externals(schema_obj) - -schema = dj.schema(schema_obj.value) -schema.spawn_missing_classes() -schema.connection.dependencies.load() +from microns_morphology_api.schemas import h01_auto_proofreading diff --git a/python/microns-morphology/microns_morphology/auto_proofreading/minnie65_auto_proofreading.py b/python/microns-morphology/microns_morphology/auto_proofreading/minnie65_auto_proofreading.py index c24590e..3408fac 100644 --- a/python/microns-morphology/microns_morphology/auto_proofreading/minnie65_auto_proofreading.py +++ b/python/microns-morphology/microns_morphology/auto_proofreading/minnie65_auto_proofreading.py @@ -1,12 +1,4 @@ import datajoint as dj from datajoint import datajoint_plus as djp -from microns_morphology_api import config -schema_obj = config.SCHEMAS.MINNIE65_AUTO_PROOFREADING - -config.register_adapters(schema_obj, context=locals()) -config.register_externals(schema_obj) - -schema = dj.schema(schema_obj.value) -schema.spawn_missing_classes() -schema.connection.dependencies.load() +from microns_morphology_api.schemas import minnie65_auto_proofreading diff --git a/python/microns-morphology/microns_morphology/h01_morphology/h01_morphology.py b/python/microns-morphology/microns_morphology/h01_morphology/h01_morphology.py index 0875273..ea4f142 100644 --- a/python/microns-morphology/microns_morphology/h01_morphology/h01_morphology.py +++ b/python/microns-morphology/microns_morphology/h01_morphology/h01_morphology.py @@ -1,12 +1,4 @@ import datajoint as dj from datajoint import datajoint_plus as djp -from microns_morphology_api import config -schema_obj = config.SCHEMAS.H01_MORPHOLOGY - -config.register_adapters(schema_obj, context=locals()) -config.register_externals(schema_obj) - -schema = dj.schema(schema_obj.value) -schema.spawn_missing_classes() -schema.connection.dependencies.load() \ No newline at end of file +from microns_morphology_api.schemas import h01_morphology \ No newline at end of file diff --git a/python/microns-morphology/microns_morphology/minnie_morphology/minnie65_morphology.py b/python/microns-morphology/microns_morphology/minnie_morphology/minnie65_morphology.py index 788477b..6eb95db 100644 --- a/python/microns-morphology/microns_morphology/minnie_morphology/minnie65_morphology.py +++ b/python/microns-morphology/microns_morphology/minnie_morphology/minnie65_morphology.py @@ -1,12 +1,4 @@ import datajoint as dj from datajoint import datajoint_plus as djp -from microns_morphology_api import config -schema_obj = config.SCHEMAS.MINNIE65_MORPHOLOGY - -config.register_adapters(schema_obj, context=locals()) -config.register_externals(schema_obj) - -schema = dj.schema(schema_obj.value) -schema.spawn_missing_classes() -schema.connection.dependencies.load() \ No newline at end of file +from microns_morphology_api.schemas import minnie65_morphology \ No newline at end of file From a612656091774be4a888e8ba31bfe1c8659699e8 Mon Sep 17 00:00:00 2001 From: spapa013 Date: Tue, 21 Dec 2021 11:57:14 -0600 Subject: [PATCH 05/11] reformat with SchemaConfig --- .../microns_morphology_api/config/__init__.py | 120 +++++------------- 1 file changed, 31 insertions(+), 89 deletions(-) diff --git a/python/microns-morphology-api/microns_morphology_api/config/__init__.py b/python/microns-morphology-api/microns_morphology_api/config/__init__.py index 36d2785..823edae 100644 --- a/python/microns-morphology-api/microns_morphology_api/config/__init__.py +++ b/python/microns-morphology-api/microns_morphology_api/config/__init__.py @@ -1,95 +1,37 @@ """ Configuration package/module for microns-morphology. """ - -import inspect -import traceback -from enum import Enum +import datajoint.datajoint_plus as djp +from microns_utils.config_utils import SchemaConfig from . import adapters from . import externals -from . import bases -try: - import datajoint as dj -except: - traceback.print_exc() - raise ImportError('DataJoint package not found.') -from microns_utils import config_utils - - -config_utils.enable_datajoint_flags() - - -def register_externals(schema_name:str): - """ - Registers the external stores for a schema_name in this module. - """ - external_stores = config_mapping[SCHEMAS(schema_name)]["externals"] - - if external_stores is not None: - config_utils.register_externals(external_stores) - - -def register_adapters(schema_name:str, context=None): - """ - Imports the adapters for a schema_name into the global namespace. - """ - adapter_objects = config_mapping[SCHEMAS(schema_name)]["adapters"] - - if adapter_objects is not None: - config_utils.register_adapters(adapter_objects, context=context) - - -def register_bases(schema_name:str, module): - """ - Maps base classes to DataJoint tables. - """ - bases = config_mapping[SCHEMAS(schema_name)]["bases"] - - if bases is not None: - for base in bases: - config_utils.register_bases(base, module) - return module - - -def create_vm(schema_name:str): - """ - Creates a virtual module after registering the external stores, adapter objects, DatajointPlus and base classes. - """ - schema = SCHEMAS(schema_name) - vm = config_utils._create_vm(schema.value, external_stores=config_mapping[schema]["externals"], adapter_objects=config_mapping[schema]["adapters"]) - config_utils.add_datajoint_plus(vm) - register_bases(schema_name, vm) - return vm - - -class SCHEMAS(Enum): - H01_MORPHOLOGY = "microns_h01_morphology" - MINNIE65_AUTO_PROOFREADING = "microns_minnie65_auto_proofreading" - H01_AUTO_PROOFREADING = "microns_h01_auto_proofreading" - MINNIE65_MORPHOLOGY = "microns_minnie65_morphology" - - -config_mapping = { - SCHEMAS.H01_MORPHOLOGY: { - "externals": externals.h01_morphology, - "adapters": adapters.h01_morphology_adapter_objects, - "bases": None - }, - SCHEMAS.H01_AUTO_PROOFREADING: { - "externals": externals.h01_auto_proofreading, - "adapters": adapters.h01_auto_proofreading_adapter_objects, - "bases": None - }, - SCHEMAS.MINNIE65_AUTO_PROOFREADING: { - "externals": externals.minnie65_auto_proofreading, - "adapters": adapters.minnie65_auto_proofreading_adapter_objects, - "bases": None - }, - SCHEMAS.MINNIE65_MORPHOLOGY: { - "externals": externals.minnie65_morphology, - "adapters": adapters.minnie65_morphology_adapter_objects, - "bases": None - - }, -} +djp.enable_datajoint_flags() + +h01_morphology_config = SchemaConfig( + module_name='h01_morphology', + schema_name='microns_h01_morphology', + externals=externals.h01_morphology, + adapters=adapters.h01_morphology +) + +minnie65_auto_proofreading_config = SchemaConfig( + module_name='minnie65_auto_proofreading', + schema_name='microns_minnie65_auto_proofreading', + externals=externals.minnie65_auto_proofreading, + adapters=adapters.minnie65_auto_proofreading +) + +h01_auto_proofreading_config = SchemaConfig( + module_name='h01_auto_proofreading', + schema_name='microns_h01_auto_proofreading', + externals=externals.h01_auto_proofreading, + adapters=adapters.h01_auto_proofreading +) + +minnie65_morphology_config = SchemaConfig( + module_name='minnie65_morphology', + schema_name='microns_minnie65_morphology', + externals=externals.minnie65_morphology, + adapters=adapters.minnie65_morphology +) From b3cd65a59442c8dfee4ff5603adb6e373746cf46 Mon Sep 17 00:00:00 2001 From: spapa013 Date: Tue, 21 Dec 2021 11:57:34 -0600 Subject: [PATCH 06/11] update adapter names --- .../microns_morphology_api/config/adapters.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/microns-morphology-api/microns_morphology_api/config/adapters.py b/python/microns-morphology-api/microns_morphology_api/config/adapters.py index 7ebb3bf..51c32c4 100644 --- a/python/microns-morphology-api/microns_morphology_api/config/adapters.py +++ b/python/microns-morphology-api/microns_morphology_api/config/adapters.py @@ -243,28 +243,28 @@ def get(self, filepath): minnie65_somas = SomasAdapter('filepath@minnie65_somas') # also store in one object for ease of use with virtual modules -h01_auto_proofreading_adapter_objects = { +h01_auto_proofreading = { 'h01_meshes': h01_meshes, 'h01_faces': h01_faces, 'h01_skeletons': h01_skeletons, 'h01_decomposition': h01_decomposition } -h01_morphology_adapter_objects = { +h01_morphology = { 'h01_meshes': h01_meshes, 'h01_skeletons': h01_skeletons, 'h01_somas':h01_somas, 'h01_faces':h01_faces, } -minnie65_auto_proofreading_adapter_objects = { +minnie65_auto_proofreading = { 'minnie65_meshes': minnie65_meshes, 'minnie65_faces': minnie65_faces, 'minnie65_skeletons': minnie65_skeletons, 'minnie65_decomposition': minnie65_decomposition } -minnie65_morphology_adapter_objects = { +minnie65_morphology = { 'minnie65_meshes': minnie65_meshes, 'minnie65_skeletons': minnie65_skeletons, 'minnie65_somas':minnie65_somas, From d658a2f2e01180d3da43162d718ea8a882273a50 Mon Sep 17 00:00:00 2001 From: spapa013 Date: Tue, 21 Dec 2021 11:57:42 -0600 Subject: [PATCH 07/11] remove bases.py --- .../microns_morphology_api/config/bases.py | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 python/microns-morphology-api/microns_morphology_api/config/bases.py diff --git a/python/microns-morphology-api/microns_morphology_api/config/bases.py b/python/microns-morphology-api/microns_morphology_api/config/bases.py deleted file mode 100644 index b36c13e..0000000 --- a/python/microns-morphology-api/microns_morphology_api/config/bases.py +++ /dev/null @@ -1,3 +0,0 @@ -""" -Base classes for DataJoint tables. -""" From e6d18d380ca8f42de1665932a70d170137f4deb6 Mon Sep 17 00:00:00 2001 From: spapa013 Date: Tue, 21 Dec 2021 11:57:58 -0600 Subject: [PATCH 08/11] make_store_dict from djp --- .../config/externals.py | 46 +++++++++---------- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/python/microns-morphology-api/microns_morphology_api/config/externals.py b/python/microns-morphology-api/microns_morphology_api/config/externals.py index 62d5bfa..8108ef9 100644 --- a/python/microns-morphology-api/microns_morphology_api/config/externals.py +++ b/python/microns-morphology-api/microns_morphology_api/config/externals.py @@ -3,7 +3,7 @@ """ from pathlib import Path -from microns_utils import config_utils +import datajoint.datajoint_plus as djp ''' minnie_em_external_stack_path = Path() / '/mnt' / 'dj-stor01' / 'microns'/ 'minnie' / 'stacks' @@ -21,12 +21,11 @@ h01_morphology_external_meshes_path = base_path / 'h01' / 'meshes' h01_morphology_external_faces_path = base_path / 'h01' / 'faces' h01_morphology = { - 'h01_somas': config_utils.make_store_dict(h01_morphology_external_somas_path), - 'h01_skeletons': config_utils.make_store_dict(h01_morphology_external_skeletons_path), - 'h01_meshes': config_utils.make_store_dict(h01_morphology_external_meshes_path), - 'h01_faces': config_utils.make_store_dict(h01_morphology_external_faces_path), - - } + 'h01_somas': djp.make_store_dict(h01_morphology_external_somas_path), + 'h01_skeletons': djp.make_store_dict(h01_morphology_external_skeletons_path), + 'h01_meshes': djp.make_store_dict(h01_morphology_external_meshes_path), + 'h01_faces': djp.make_store_dict(h01_morphology_external_faces_path), +} #h01_auto_proofreading h01_auto_proofreading_external_decomposition_path = base_path / 'h01' / 'decomposition' @@ -34,12 +33,11 @@ h01_auto_proofreading_external_skeletons_path = base_path / 'h01' / 'skeletons' h01_auto_proofreading_external_meshes_path = base_path / 'h01' / 'meshes' h01_auto_proofreading = { - 'h01_decomposition': config_utils.make_store_dict(h01_auto_proofreading_external_decomposition_path), - 'h01_faces': config_utils.make_store_dict(h01_auto_proofreading_external_faces_path), - 'h01_skeletons': config_utils.make_store_dict(h01_auto_proofreading_external_skeletons_path), - 'h01_meshes': config_utils.make_store_dict(h01_auto_proofreading_external_meshes_path), - - } + 'h01_decomposition': djp.make_store_dict(h01_auto_proofreading_external_decomposition_path), + 'h01_faces': djp.make_store_dict(h01_auto_proofreading_external_faces_path), + 'h01_skeletons': djp.make_store_dict(h01_auto_proofreading_external_skeletons_path), + 'h01_meshes': djp.make_store_dict(h01_auto_proofreading_external_meshes_path), +} #minnie65_morphology minnie65_morphology_external_somas_path = base_path / 'minnie' / 'somas' @@ -47,12 +45,11 @@ minnie65_morphology_external_meshes_path = base_path / 'minnie' / 'meshes' minnie65_morphology_external_faces_path = base_path / 'minnie' / 'faces' minnie65_morphology = { - 'minnie65_somas': config_utils.make_store_dict(minnie65_morphology_external_somas_path), - 'minnie65_skeletons': config_utils.make_store_dict(minnie65_morphology_external_skeletons_path), - 'minnie65_meshes': config_utils.make_store_dict(minnie65_morphology_external_meshes_path), - 'minnie65_faces': config_utils.make_store_dict(minnie65_morphology_external_faces_path), - - } + 'minnie65_somas': djp.make_store_dict(minnie65_morphology_external_somas_path), + 'minnie65_skeletons': djp.make_store_dict(minnie65_morphology_external_skeletons_path), + 'minnie65_meshes': djp.make_store_dict(minnie65_morphology_external_meshes_path), + 'minnie65_faces': djp.make_store_dict(minnie65_morphology_external_faces_path), +} #minnie65_auto_proofreading minnie65_auto_proofreading_external_decomposition_path = base_path / 'minnie' / 'decomposition' @@ -60,9 +57,8 @@ minnie65_auto_proofreading_external_skeletons_path = base_path / 'minnie' / 'skeletons' minnie65_auto_proofreading_external_meshes_path = base_path / 'minnie' / 'meshes' minnie65_auto_proofreading = { - 'minnie65_decomposition': config_utils.make_store_dict(minnie65_auto_proofreading_external_decomposition_path), - 'minnie65_faces': config_utils.make_store_dict(minnie65_auto_proofreading_external_faces_path), - 'minnie65_skeletons': config_utils.make_store_dict(minnie65_auto_proofreading_external_skeletons_path), - 'minnie65_meshes': config_utils.make_store_dict(minnie65_auto_proofreading_external_meshes_path), - - } + 'minnie65_decomposition': djp.make_store_dict(minnie65_auto_proofreading_external_decomposition_path), + 'minnie65_faces': djp.make_store_dict(minnie65_auto_proofreading_external_faces_path), + 'minnie65_skeletons': djp.make_store_dict(minnie65_auto_proofreading_external_skeletons_path), + 'minnie65_meshes': djp.make_store_dict(minnie65_auto_proofreading_external_meshes_path), +} From 7b509265f88550266b5b184341ff67353dd40cb3 Mon Sep 17 00:00:00 2001 From: spapa013 Date: Tue, 21 Dec 2021 11:58:34 -0600 Subject: [PATCH 09/11] use new config object --- .../schemas/h01_auto_proofreading.py | 13 +++++++++++++ .../schemas/h01_morphology.py | 12 ++++++++++++ .../schemas/minnie65_auto_proofreading.py | 12 ++++++++++++ .../schemas/minnie65_morphology.py | 12 ++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 python/microns-morphology-api/microns_morphology_api/schemas/h01_auto_proofreading.py create mode 100644 python/microns-morphology-api/microns_morphology_api/schemas/h01_morphology.py create mode 100644 python/microns-morphology-api/microns_morphology_api/schemas/minnie65_auto_proofreading.py create mode 100644 python/microns-morphology-api/microns_morphology_api/schemas/minnie65_morphology.py diff --git a/python/microns-morphology-api/microns_morphology_api/schemas/h01_auto_proofreading.py b/python/microns-morphology-api/microns_morphology_api/schemas/h01_auto_proofreading.py new file mode 100644 index 0000000..4054621 --- /dev/null +++ b/python/microns-morphology-api/microns_morphology_api/schemas/h01_auto_proofreading.py @@ -0,0 +1,13 @@ +import datajoint as dj +from datajoint import datajoint_plus as djp + +from ..config import h01_auto_proofreading_config + +h01_auto_proofreading_config.register_adapters(context=locals()) +h01_auto_proofreading_config.register_externals() + +schema = dj.schema(h01_auto_proofreading_config.schema_name) + +schema.spawn_missing_classes() +schema.connection.dependencies.load() + diff --git a/python/microns-morphology-api/microns_morphology_api/schemas/h01_morphology.py b/python/microns-morphology-api/microns_morphology_api/schemas/h01_morphology.py new file mode 100644 index 0000000..d63ef48 --- /dev/null +++ b/python/microns-morphology-api/microns_morphology_api/schemas/h01_morphology.py @@ -0,0 +1,12 @@ +import datajoint as dj +from datajoint import datajoint_plus as djp + +from ..config import h01_morphology_config + +h01_morphology_config.register_adapters(context=locals()) +h01_morphology_config.register_externals() + +schema = dj.schema(h01_morphology_config.schema_name) + +schema.spawn_missing_classes() +schema.connection.dependencies.load() \ No newline at end of file diff --git a/python/microns-morphology-api/microns_morphology_api/schemas/minnie65_auto_proofreading.py b/python/microns-morphology-api/microns_morphology_api/schemas/minnie65_auto_proofreading.py new file mode 100644 index 0000000..5092802 --- /dev/null +++ b/python/microns-morphology-api/microns_morphology_api/schemas/minnie65_auto_proofreading.py @@ -0,0 +1,12 @@ +import datajoint as dj +from datajoint import datajoint_plus as djp + +from ..config import minnie65_auto_proofreading_config + +minnie65_auto_proofreading_config.register_adapters(context=locals()) +minnie65_auto_proofreading_config.register_externals() + +schema = dj.schema(minnie65_auto_proofreading_config.schema_name) + +schema.spawn_missing_classes() +schema.connection.dependencies.load() diff --git a/python/microns-morphology-api/microns_morphology_api/schemas/minnie65_morphology.py b/python/microns-morphology-api/microns_morphology_api/schemas/minnie65_morphology.py new file mode 100644 index 0000000..6f2f843 --- /dev/null +++ b/python/microns-morphology-api/microns_morphology_api/schemas/minnie65_morphology.py @@ -0,0 +1,12 @@ +import datajoint as dj +from datajoint import datajoint_plus as djp + +from ..config import minnie65_morphology_config + +minnie65_morphology_config.register_adapters(context=locals()) +minnie65_morphology_config.register_externals() + +schema = dj.schema(minnie65_morphology_config.schema_name) + +schema.spawn_missing_classes() +schema.connection.dependencies.load() \ No newline at end of file From 32c6f80094828f3c520e63c03e672ab594add3dc Mon Sep 17 00:00:00 2001 From: spapa013 Date: Tue, 21 Dec 2021 12:01:17 -0600 Subject: [PATCH 10/11] update version --- python/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/version.py b/python/version.py index c1336bd..d85b28e 100644 --- a/python/version.py +++ b/python/version.py @@ -1 +1 @@ -__version__ = "0.0.5" \ No newline at end of file +__version__ = "0.0.6" \ No newline at end of file From 6c01aec60136e3230681fea07d936d5b7bfc4f44 Mon Sep 17 00:00:00 2001 From: spapa013 Date: Tue, 21 Dec 2021 12:03:40 -0600 Subject: [PATCH 11/11] init schemas --- .../microns_morphology_api/schemas/__init__.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 python/microns-morphology-api/microns_morphology_api/schemas/__init__.py diff --git a/python/microns-morphology-api/microns_morphology_api/schemas/__init__.py b/python/microns-morphology-api/microns_morphology_api/schemas/__init__.py new file mode 100644 index 0000000..e69de29