Skip to content

Commit 16f2eb2

Browse files
committed
Move imports to top of module
1 parent 0ebcee5 commit 16f2eb2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/resins/models/lookuptables.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
from typing import ClassVar, TYPE_CHECKING
1313

1414
import numpy as np
15+
from numpy.polynomial import Polynomial
16+
from scipy.interpolate import RegularGridInterpolator
1517

1618
from .model_base import InstrumentModel, ModelData
1719
from .mixins import SimpleBroaden1DMixin
@@ -69,9 +71,6 @@ class ScaledTabulatedModel(SimpleBroaden1DMixin, InstrumentModel):
6971
data_class: ClassVar[type[ScaledTabulatedModelData]] = ScaledTabulatedModelData
7072

7173
def __init__(self, model_data: ScaledTabulatedModelData, **_):
72-
from numpy.polynomial import Polynomial
73-
from scipy.interpolate import RegularGridInterpolator
74-
7574
super().__init__(model_data)
7675
self.data = np.load(importlib.resources.files("resins.instrument_data") / model_data.npz)
7776

0 commit comments

Comments
 (0)