Skip to content

Commit

Permalink
change dep
Browse files Browse the repository at this point in the history
  • Loading branch information
aalbino2 committed Jan 14, 2025
1 parent 00dd1cb commit 64694ce
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 23 deletions.
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,9 @@ license = { file = "LICENSE" }
dependencies = [
"nomad-lab>=1.3.0",
"python-magic-bin; sys_platform == 'win32'",
"pdi-nomad-plugin",
"pdi-nomad-plugin @ git+https://github.com/PDI-Berlin/pdi-nomad-plugin.git@main",
]

[tool.uv.sources]
pdi-nomad-plugin = { git = "https://github.com/PDI-Berlin/pdi-nomad-plugin.git", branch = "main" }

[project.urls]
Repository = "https://github.com/aalbino2/nomad-aa-plugin"

Expand Down
2 changes: 1 addition & 1 deletion src/nomad_aa_plugin/parsers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class MyParserFiveEntryPoint(ParserEntryPoint):
parameter: int = Field(0, description='Custom configuration parameter')

def load(self):
from nomad_aa_plugin.parsers.parser import MyParserFive
from nomad_aa_plugin.parsers.parser import MyParserFive

return MyParserFive(**self.dict())

Expand Down
5 changes: 2 additions & 3 deletions src/nomad_aa_plugin/parsers/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@
TYPE_CHECKING,
)

import pandas as pd

import h5py
import pandas as pd

if TYPE_CHECKING:
from nomad.datamodel.datamodel import (
EntryArchive,
)

from nomad.units import ureg
from nomad.datamodel.datamodel import EntryArchive
from nomad.parsing import MatchingParser
from nomad.parsing.parser import MatchingParser
from nomad.units import ureg
from nomad.utils import hash
from pdi_nomad_plugin.utils import (
create_archive,
Expand Down
25 changes: 10 additions & 15 deletions src/nomad_aa_plugin/schema_packages/schema_package.py
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
from typing import (
TYPE_CHECKING,
)

import plotly.graph_objects as go

if TYPE_CHECKING:
from nomad.datamodel.datamodel import (
EntryArchive,
)
from structlog.stdlib import (
BoundLogger,
)
pass

from nomad.datamodel.data import (
ArchiveSection,
EntryData,
)
from nomad.datamodel.hdf5 import HDF5Reference
from nomad.datamodel.metainfo.annotations import (
ELNAnnotation,
H5WebAnnotation,
)

from nomad.datamodel.metainfo.plot import (
PlotlyFigure,
PlotSection,
)
from nomad.datamodel.hdf5 import HDF5Reference
from nomad.datamodel.metainfo.plot import PlotSection
from nomad.config import config
from nomad.datamodel.data import Schema
from nomad.datamodel.metainfo.annotations import (ELNAnnotation, ELNComponentEnum, H5WebAnnotation)
from nomad.metainfo import Quantity, SchemaPackage
from nomad.datamodel.data import EntryData
from nomad.metainfo import (
Quantity,
SubSection,
SchemaPackage,
Section,
SubSection,
)

m_package = SchemaPackage()
Expand Down

0 comments on commit 64694ce

Please sign in to comment.