Skip to content

Commit

Permalink
Fix imports using abspath to package
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePizarro3 committed Jun 5, 2024
1 parent ab84ca6 commit d5282f7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/nomad_simulations/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
from nomad.metainfo import Quantity, SubSection
from nomad.datamodel.metainfo.annotations import ELNAnnotation

from .model_system import ModelSystem
from .physical_property import PhysicalProperty
from .numerical_settings import SelfConsistency
from .properties import (
from nomad_simulations.model_system import ModelSystem
from nomad_simulations.physical_property import PhysicalProperty
from nomad_simulations.numerical_settings import SelfConsistency
from nomad_simulations.properties import (
FermiLevel,
ChemicalPotential,
CrystalFieldSplitting,
Expand Down
4 changes: 2 additions & 2 deletions src/nomad_simulations/physical_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
from nomad.metainfo.metainfo import DirectQuantity, Dimension, _placeholder_quantity
from nomad.datamodel.metainfo.basesections import Entity

from .variables import Variables
from .numerical_settings import SelfConsistency
from nomad_simulations.variables import Variables
from nomad_simulations.numerical_settings import SelfConsistency


# We add `logger` for the `PhysicalProperty.variables_shape` method
Expand Down
2 changes: 1 addition & 1 deletion src/nomad_simulations/properties/band_gap.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

from nomad.metainfo import Quantity, MEnum, Section, Context

from ..physical_property import PhysicalProperty
from nomad_simulations.physical_property import PhysicalProperty


class ElectronicBandGap(PhysicalProperty):
Expand Down
2 changes: 1 addition & 1 deletion src/nomad_simulations/properties/energies.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from nomad.metainfo import Quantity, Section, Context

from ..physical_property import PhysicalProperty
from nomad_simulations.physical_property import PhysicalProperty


class FermiLevel(PhysicalProperty):
Expand Down
2 changes: 1 addition & 1 deletion src/nomad_simulations/properties/hopping_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from nomad.metainfo import Quantity, Section, Context

from ..physical_property import PhysicalProperty
from nomad_simulations.physical_property import PhysicalProperty


class HoppingMatrix(PhysicalProperty):
Expand Down
10 changes: 5 additions & 5 deletions src/nomad_simulations/properties/spectral_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
from nomad import config
from nomad.metainfo import Quantity, SubSection, Section, Context, MEnum

from ..utils import get_sibling_section, get_variables
from ..physical_property import PhysicalProperty
from ..variables import Energy2 as Energy
from ..atoms_state import AtomsState, OrbitalsState
from .band_gap import ElectronicBandGap
from nomad_simulations.utils import get_sibling_section, get_variables
from nomad_simulations.physical_property import PhysicalProperty
from nomad_simulations.variables import Energy2 as Energy
from nomad_simulations.atoms_state import AtomsState, OrbitalsState
from nomad_simulations.properties.band_gap import ElectronicBandGap


class SpectralProfile(PhysicalProperty):
Expand Down

0 comments on commit d5282f7

Please sign in to comment.