Skip to content

Commit

Permalink
Added a schema without a center pt but with size (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdorkenw authored Apr 22, 2024
1 parent 69d37b1 commit 34f8f7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions emannotationschemas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from emannotationschemas.schemas.synapse import SynapseSchema
from emannotationschemas.schemas.synapse import NoCenterSynapse
from emannotationschemas.schemas.synapse import PlasticSynapse
from emannotationschemas.schemas.synapse import ValidSynapse
from emannotationschemas.schemas.synapse import BuhmannSynapseSchema
Expand Down Expand Up @@ -62,6 +63,7 @@
type_mapping = {
"synapse": SynapseSchema,
"nocleft_synapse": NoCleftSynapse,
"nocenter_synapse": NoCenterSynapse,
"fly_synapse": BuhmannSynapseSchema,
"fly_nt_synapse": BuhmannEcksteinSynapseSchema,
"bouton_shape": BoutonShape,
Expand Down
4 changes: 4 additions & 0 deletions emannotationschemas/schemas/synapse.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class SynapseSchema(BaseSynapseSchema):
size = mm.fields.Float(description="size of synapse")


class NoCenterSynapse(BaseSynapseSchema):
size = mm.fields.Float(description="size of synapse")


class BuhmannSynapseSchema(BaseSynapseSchema):
connection_score = mm.fields.Float(
description="score assigned by Buhmann et al. 2019"
Expand Down

0 comments on commit 34f8f7f

Please sign in to comment.