Skip to content

Commit

Permalink
Fix conftest imports
Browse files Browse the repository at this point in the history
Deleted configuration in wrong modules
  • Loading branch information
JosePizarro3 committed Sep 25, 2024
1 parent 13658de commit 3f77b85
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 17 deletions.
5 changes: 0 additions & 5 deletions src/nomad_simulations/schema_packages/model_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
Surface,
)
from nomad.atomutils import Formula, get_normalized_wyckoff, search_aflow_prototype
from nomad.config import config
from nomad.datamodel.data import ArchiveSection
from nomad.datamodel.metainfo.annotations import ELNAnnotation
from nomad.datamodel.metainfo.basesections import Entity, System
Expand All @@ -32,10 +31,6 @@
is_not_representative,
)

configuration = config.get_plugin_entry_point(
'nomad_simulations.schema_packages:nomad_simulations_plugin'
)


class GeometricSpace(Entity):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import numpy as np
import pint
from nomad.config import config
from nomad.metainfo import Quantity, SubSection

if TYPE_CHECKING:
Expand All @@ -20,10 +19,6 @@
from nomad_simulations.schema_packages.properties.fermi_surface import FermiSurface
from nomad_simulations.schema_packages.utils import get_sibling_section

configuration = config.get_plugin_entry_point(
'nomad_simulations.schema_packages:nomad_simulations_plugin'
)


class BaseElectronicEigenvalues(PhysicalProperty):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import numpy as np
import pint
from nomad.config import config
from nomad.metainfo import MEnum, Quantity, SubSection

if TYPE_CHECKING:
Expand All @@ -16,10 +15,6 @@
from nomad_simulations.schema_packages.utils import get_sibling_section, get_variables
from nomad_simulations.schema_packages.variables import Energy2 as Energy

configuration = config.get_plugin_entry_point(
'nomad_simulations.schema_packages:nomad_simulations_plugin'
)


class SpectralProfile(PhysicalProperty):
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/properties/test_band_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

from nomad_simulations.schema_packages.properties import ElectronicEigenvalues

from ..conftest import generate_electronic_eigenvalues
from . import logger
from .conftest import generate_electronic_eigenvalues, generate_simulation


class TestElectronicEigenvalues:
Expand Down
2 changes: 1 addition & 1 deletion tests/properties/test_permittivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
from nomad_simulations.schema_packages.properties import Permittivity
from nomad_simulations.schema_packages.variables import Frequency, KMesh, Variables

from ..conftest import generate_k_space_simulation
from . import logger
from .conftest import generate_k_space_simulation


class TestPermittivity:
Expand Down

0 comments on commit 3f77b85

Please sign in to comment.