From d5282f770a20bd118ae7de6606610b0cbb322d7a Mon Sep 17 00:00:00 2001 From: JosePizarro3 Date: Wed, 5 Jun 2024 18:01:52 +0200 Subject: [PATCH] Fix imports using abspath to package --- src/nomad_simulations/outputs.py | 8 ++++---- src/nomad_simulations/physical_property.py | 4 ++-- src/nomad_simulations/properties/band_gap.py | 2 +- src/nomad_simulations/properties/energies.py | 2 +- src/nomad_simulations/properties/hopping_matrix.py | 2 +- src/nomad_simulations/properties/spectral_profile.py | 10 +++++----- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/nomad_simulations/outputs.py b/src/nomad_simulations/outputs.py index 07e26b40..388e6504 100644 --- a/src/nomad_simulations/outputs.py +++ b/src/nomad_simulations/outputs.py @@ -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, diff --git a/src/nomad_simulations/physical_property.py b/src/nomad_simulations/physical_property.py index 0f908ac4..39c1d926 100644 --- a/src/nomad_simulations/physical_property.py +++ b/src/nomad_simulations/physical_property.py @@ -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 diff --git a/src/nomad_simulations/properties/band_gap.py b/src/nomad_simulations/properties/band_gap.py index 0656197a..6245bc63 100644 --- a/src/nomad_simulations/properties/band_gap.py +++ b/src/nomad_simulations/properties/band_gap.py @@ -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): diff --git a/src/nomad_simulations/properties/energies.py b/src/nomad_simulations/properties/energies.py index 8d8209a3..3283a1f8 100644 --- a/src/nomad_simulations/properties/energies.py +++ b/src/nomad_simulations/properties/energies.py @@ -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): diff --git a/src/nomad_simulations/properties/hopping_matrix.py b/src/nomad_simulations/properties/hopping_matrix.py index 7eb6713d..57652eb0 100644 --- a/src/nomad_simulations/properties/hopping_matrix.py +++ b/src/nomad_simulations/properties/hopping_matrix.py @@ -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): diff --git a/src/nomad_simulations/properties/spectral_profile.py b/src/nomad_simulations/properties/spectral_profile.py index ddfcfaa6..9b11d94e 100644 --- a/src/nomad_simulations/properties/spectral_profile.py +++ b/src/nomad_simulations/properties/spectral_profile.py @@ -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):