Skip to content

Commit

Permalink
undo add extra package, go with default one
Browse files Browse the repository at this point in the history
  • Loading branch information
schumannj committed May 28, 2024
1 parent 7be09ad commit 32e37f2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,5 @@ where = ["src"]
[project.entry-points.'nomad.plugin']
myparser = "nomad_unisyscat.parsers:myparser"
mypackage = "nomad_unisyscat.schema_packages:mypackage"
unisyscatpackage = "nomad_unisyscat.schema_packages:unisyscatpackage"

myapp = "nomad_unisyscat.apps:myapp"
19 changes: 1 addition & 18 deletions src/nomad_unisyscat/schema_packages/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,4 @@ def load(self):
mypackage = MySchemaPackageEntryPoint(
name='MyPackage',
description='Schema package defined using the new plugin mechanism.',
)


class SpectroscopyEntryPoint(SchemaPackageEntryPoint):
parameter: int = Field(0, description='Custom configuration parameter')

def load(self):
from nomad_unisyscat.schema_packages.mypackage import m_package

return m_package


unisyscatpackage = SpectroscopyEntryPoint(
name='UniSysCat',
description="""
Schema package for unisyscat example data defined using the new plugin mechanism.
""",
)
)
3 changes: 1 addition & 2 deletions src/nomad_unisyscat/schema_packages/mypackage.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

m_package = SchemaPackage()


class NVRSpectroscopy(Measurement, PlotSection, EntryData):
measurements_data_file = Quantity(
type=str,
Expand Down Expand Up @@ -94,4 +93,4 @@ def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
self.message = f'Hello {self.name}!'


m_package.__init_metainfo__()
m_package.__init_metainfo__()

0 comments on commit 32e37f2

Please sign in to comment.