Skip to content

Commit

Permalink
add h01_materialization to api.schemas and change import to reflect n…
Browse files Browse the repository at this point in the history
…ew structure
  • Loading branch information
spapa013 committed Dec 21, 2021
1 parent d62114f commit 4ee1c81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""
DataJoint tables for importing h01 from Jeff Lichtman group.
"""
import datajoint as dj
import datajoint.datajoint_plus as djp

from ..config import h01_materialization_config

h01_materialization_config.register_externals()
h01_materialization_config.register_adapters(context=locals())

schema = dj.schema(h01_materialization_config.schema_name, create_schema=True)
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,4 @@
else:
from tqdm import tqdm

from microns_materialization_api import config
schema_obj = config.SCHEMAS.H01_MATERIALIZATION

config.register_adapters(schema_obj, context=locals())
config.register_externals(schema_obj)

# Schema creation
schema = dj.schema(schema_obj.value)
schema.spawn_missing_classes()
schema.connection.dependencies.load()
from microns_materialization_api.schemas import h01_materialization as h01mat

0 comments on commit 4ee1c81

Please sign in to comment.