Skip to content

Commit

Permalink
Merge pull request #14 from spapa013/main
Browse files Browse the repository at this point in the history
rename config import
  • Loading branch information
spapa013 authored Dec 22, 2021
2 parents 27d840a + 965251e commit 85f4c06
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import datajoint as dj
import datajoint.datajoint_plus as djp

from ..config import h01_materialization_config
from ..config import h01_materialization_config as config

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

schema = dj.schema(h01_materialization_config.schema_name, create_schema=True)
schema = dj.schema(config.schema_name, create_schema=True)

schema.spawn_missing_classes()
schema.connection.dependencies.load()
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import datajoint as dj
import datajoint.datajoint_plus as djp

from ..config import minnie65_materialization_config
from ..config import minnie65_materialization_config as config

minnie65_materialization_config.register_externals()
minnie65_materialization_config.register_adapters(context=locals())
config.register_externals()
config.register_adapters(context=locals())

schema = dj.schema(minnie65_materialization_config.schema_name, create_schema=True)
schema = dj.schema(config.schema_name, create_schema=True)

@schema
class Materialization(djp.Manual):
Expand Down Expand Up @@ -78,7 +78,7 @@ class Meta(djp.Part):


@schema
class FunctionalCoreg(dj.Manual):
class FunctionalCoreg(djp.Manual):
definition = """
# ID's of cells from the table 'functional_coreg'
->Materialization
Expand All @@ -94,7 +94,7 @@ class FunctionalCoreg(dj.Manual):
supervoxel_id : bigint unsigned # id of the supervoxel under the nucleus centroid. Equivalent to Allen: 'pt_supervoxel_id'.
"""

class Meta(dj.Part):
class Meta(djp.Part):
definition = """
->Materialization
---
Expand All @@ -104,14 +104,14 @@ class Meta(dj.Part):


@schema
class ProofreadSegment(dj.Manual):
class ProofreadSegment(djp.Manual):
definition = """
# Segment ID's of manually proofread neurons from 'proofreading_functional_coreg_v2'
->Materialization
segment_id : bigint unsigned # id of the segment under the nucleus centroid. Equivalent to Allen 'pt_root_id'.
"""

class Meta(dj.Part):
class Meta(djp.Part):
definition = """
->Materialization
---
Expand All @@ -121,7 +121,7 @@ class Meta(dj.Part):


@schema
class ProofreadFunctionalCoregV2(dj.Manual):
class ProofreadFunctionalCoregV2(djp.Manual):
definition = """
# ID's of cells from the table 'proofreading_functional_coreg_v2'
->Materialization
Expand All @@ -137,7 +137,7 @@ class ProofreadFunctionalCoregV2(dj.Manual):
supervoxel_id : bigint unsigned # id of the supervoxel under the nucleus centroid. Equivalent to Allen: 'pt_supervoxel_id'.
"""

class Meta(dj.Part):
class Meta(djp.Part):
definition = """
->Materialization
---
Expand All @@ -147,7 +147,7 @@ class Meta(dj.Part):


@schema
class SynapseSegmentSource(dj.Manual):
class SynapseSegmentSource(djp.Manual):
definition = """
segment_id : bigint unsigned # id of the segment under the nucleus centroid. Equivalent to Allen 'pt_root_id'.
---
Expand All @@ -156,7 +156,7 @@ class SynapseSegmentSource(dj.Manual):


@schema
class Synapse(dj.Computed):
class Synapse(djp.Computed):
definition = """
# Synapses from the table 'synapses_pni_2'
->SynapseSegmentSource.proj(primary_seg_id='segment_id')
Expand All @@ -173,7 +173,7 @@ class Synapse(dj.Computed):


@schema
class AllenV1ColumnTypesSlanted(dj.Manual):
class AllenV1ColumnTypesSlanted(djp.Manual):
definition = """
# ID's of cells from the table 'allen_v1_column_types_slanted'
->Materialization
Expand All @@ -190,7 +190,7 @@ class AllenV1ColumnTypesSlanted(dj.Manual):
supervoxel_id : bigint unsigned # id of the supervoxel under the nucleus centroid. Equivalent to Allen: 'pt_supervoxel_id'.
"""

class Meta(dj.Part):
class Meta(djp.Part):
definition = """
->Materialization
---
Expand All @@ -200,7 +200,7 @@ class Meta(dj.Part):


@schema
class AllenSomaCourseCellClassModelV1(dj.Manual):
class AllenSomaCourseCellClassModelV1(djp.Manual):
definition = """
# ID's of cells from the table 'allen_soma_coarse_cell_class_model_v1'
->Materialization
Expand All @@ -217,7 +217,7 @@ class AllenSomaCourseCellClassModelV1(dj.Manual):
supervoxel_id : bigint unsigned # id of the supervoxel under the nucleus centroid. Equivalent to Allen: 'pt_supervoxel_id'.
"""

class Meta(dj.Part):
class Meta(djp.Part):
definition = """
->Materialization
---
Expand All @@ -227,7 +227,7 @@ class Meta(dj.Part):


@schema
class AllenSomaCourseCellClassModelV2(dj.Manual):
class AllenSomaCourseCellClassModelV2(djp.Manual):
definition = """
# ID's of cells from the table 'allen_soma_coarse_cell_class_model_v2'
->Materialization
Expand All @@ -244,7 +244,7 @@ class AllenSomaCourseCellClassModelV2(dj.Manual):
supervoxel_id : bigint unsigned # id of the supervoxel under the nucleus centroid. Equivalent to Allen: 'pt_supervoxel_id'.
"""

class Meta(dj.Part):
class Meta(djp.Part):
definition = """
->Materialization
---
Expand Down

0 comments on commit 85f4c06

Please sign in to comment.