Skip to content

Commit

Permalink
rename experiment to model
Browse files Browse the repository at this point in the history
  • Loading branch information
andped10 committed Sep 19, 2024
1 parent cd6bd9b commit ac233aa
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/easyreflectometry/calculators/bornagain/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
from easyscience.Objects.Inferface import ItemContainer

from easyreflectometry.experiment import Model
from easyreflectometry.model import Model
from easyreflectometry.sample import Layer
from easyreflectometry.sample import Material
from easyreflectometry.sample import MaterialMixture
Expand Down
2 changes: 1 addition & 1 deletion src/easyreflectometry/calculators/calculator_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from easyscience.Objects.core import ComponentSerializer
from easyscience.Objects.Inferface import ItemContainer

from easyreflectometry.experiment import Model
from easyreflectometry.model import Model
from easyreflectometry.sample import BaseAssembly
from easyreflectometry.sample import Layer
from easyreflectometry.sample import Material
Expand Down
2 changes: 1 addition & 1 deletion src/easyreflectometry/calculators/refl1d/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from refl1d import model
from refl1d import names

from easyreflectometry.experiment.resolution_functions import PercentageFhwm
from easyreflectometry.model.resolution_functions import PercentageFhwm

from ..wrapper_base import WrapperBase

Expand Down
2 changes: 1 addition & 1 deletion src/easyreflectometry/calculators/refnx/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np
from refnx import reflect

from easyreflectometry.experiment.resolution_functions import PercentageFhwm
from easyreflectometry.model.resolution_functions import PercentageFhwm

from ..wrapper_base import WrapperBase

Expand Down
4 changes: 2 additions & 2 deletions src/easyreflectometry/calculators/wrapper_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import numpy as np

from easyreflectometry.experiment import PercentageFhwm
from easyreflectometry.experiment import ResolutionFunction
from easyreflectometry.model import PercentageFhwm
from easyreflectometry.model import ResolutionFunction


class WrapperBase:
Expand Down
2 changes: 1 addition & 1 deletion src/easyreflectometry/fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from easyscience.fitting import AvailableMinimizers
from easyscience.fitting.multi_fitter import MultiFitter as easyFitter

from easyreflectometry.experiment import Model
from easyreflectometry.model import Model


class Fitter:
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/calculators/refnx/test_refnx_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
from refnx import reflect

from easyreflectometry.calculators.refnx.wrapper import RefnxWrapper
from easyreflectometry.experiment import LinearSpline
from easyreflectometry.experiment import PercentageFhwm
from easyreflectometry.model import LinearSpline
from easyreflectometry.model import PercentageFhwm


class TestRefnx(unittest.TestCase):
Expand Down
6 changes: 3 additions & 3 deletions tests/experiment/test_model.py → tests/model/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
from numpy.testing import assert_equal

from easyreflectometry.calculators import CalculatorFactory
from easyreflectometry.experiment import LinearSpline
from easyreflectometry.experiment import Model
from easyreflectometry.experiment import PercentageFhwm
from easyreflectometry.model import LinearSpline
from easyreflectometry.model import Model
from easyreflectometry.model import PercentageFhwm
from easyreflectometry.sample import Layer
from easyreflectometry.sample import LayerCollection
from easyreflectometry.sample import Material
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from easyscience import global_object

from easyreflectometry.experiment.model import Model
from easyreflectometry.experiment.model_collection import ModelCollection
from easyreflectometry.model.model import Model
from easyreflectometry.model.model_collection import ModelCollection


class TestModelCollection:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import numpy as np

from easyreflectometry.experiment.resolution_functions import DEFAULT_RESOLUTION_FWHM_PERCENTAGE
from easyreflectometry.experiment.resolution_functions import LinearSpline
from easyreflectometry.experiment.resolution_functions import PercentageFhwm
from easyreflectometry.experiment.resolution_functions import ResolutionFunction
from easyreflectometry.model.resolution_functions import DEFAULT_RESOLUTION_FWHM_PERCENTAGE
from easyreflectometry.model.resolution_functions import LinearSpline
from easyreflectometry.model.resolution_functions import PercentageFhwm
from easyreflectometry.model.resolution_functions import ResolutionFunction


class TestPercentageFhwm(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import easyreflectometry
from easyreflectometry.calculators import CalculatorFactory
from easyreflectometry.data import load
from easyreflectometry.experiment import Model
from easyreflectometry.experiment import PercentageFhwm
from easyreflectometry.fitting import Fitter
from easyreflectometry.model import Model
from easyreflectometry.model import PercentageFhwm
from easyreflectometry.sample import Layer
from easyreflectometry.sample import Material
from easyreflectometry.sample import Sample
Expand Down
4 changes: 2 additions & 2 deletions tests/test_topmost_nesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from numpy.testing import assert_almost_equal

from easyreflectometry.calculators import CalculatorFactory
from easyreflectometry.experiment import LinearSpline
from easyreflectometry.experiment import Model
from easyreflectometry.model import LinearSpline
from easyreflectometry.model import Model
from easyreflectometry.sample import Multilayer
from easyreflectometry.sample import RepeatingMultilayer
from easyreflectometry.sample import SurfactantLayer
Expand Down

0 comments on commit ac233aa

Please sign in to comment.