Skip to content

Commit

Permalink
import MEnum
Browse files Browse the repository at this point in the history
  • Loading branch information
schumannj committed Jun 18, 2024
1 parent 88e974c commit 1c50758
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/nomad_unisyscat/schema_packages/mypackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
)
from nomad.datamodel.metainfo.eln import ELNSample
from nomad.datamodel.metainfo.plot import PlotlyFigure, PlotSection
from nomad.metainfo import Datetime, Quantity, SchemaPackage, Section,
from nomad.metainfo.util import MEnum
from nomad.metainfo import Datetime, Quantity, SchemaPackage, Section

configuration = config.get_plugin_entry_point(
'nomad_unisyscat.schema_packages:mypackage'
Expand All @@ -36,13 +37,13 @@ class UniSysCatExampleSample(ELNSample, Schema):
m_def = Section(
a_eln={
"hide": [
#"chemical_formula",
"chemical_formula",
"description",
#"datetime"
"datetime"
]
},)
creation_time = Quantity(
type='Datetime',
type=Datetime,
a_eln={
"component": "DateTimeEditQuantity"
},
Expand Down

0 comments on commit 1c50758

Please sign in to comment.