Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

31 add unisyscat category for classes #36

Merged
merged 3 commits into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/nomad_unisyscat/schema_packages/mypackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np
import plotly.express as px
from nomad.config import config
from nomad.datamodel.data import ArchiveSection, Schema
from nomad.datamodel.data import ArchiveSection, EntryDataCategory, Schema
from nomad.datamodel.metainfo.annotations import ELNAnnotation
from nomad.datamodel.metainfo.basesections import (
CompositeSystem,
Expand All @@ -18,7 +18,7 @@
)
from nomad.datamodel.metainfo.plot import PlotlyFigure, PlotSection
from nomad.metainfo import Datetime, Quantity, SchemaPackage, Section
from nomad.metainfo.metainfo import Category, MCategory, SubSection
from nomad.metainfo.metainfo import Category, SubSection
from nomad.metainfo.util import MEnum

configuration = config.get_plugin_entry_point(
Expand All @@ -35,8 +35,6 @@

m_package = SchemaPackage()

class EntryDataCategory(MCategory):
pass

class UniSysCatElnCategory(EntryDataCategory):
m_def = Category(label='UniSysCat', categories=[EntryDataCategory])
Expand All @@ -46,7 +44,7 @@ class UniSysCatSample(CompositeSystem, Schema):
Class autogenerated from yaml schema.
'''
m_def = Section(
label='Sample',
label='Sample entry',
categories=[UniSysCatElnCategory],)

datetime = Quantity(
Expand Down