Skip to content

Commit 8b30619

Browse files
committed
Removes unused numpy imports
1 parent ce5a1f7 commit 8b30619

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

src/easydiffraction/analysis/analysis.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from typing import Optional
66
from typing import Union
77

8-
import numpy as np
98
import pandas as pd
109

1110
from easydiffraction.core.objects import Descriptor

src/easydiffraction/analysis/calculation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
from typing import List
66
from typing import Optional
77

8-
import numpy as np
9-
108
from easydiffraction.experiments.experiment import Experiment
119
from easydiffraction.experiments.experiments import Experiments
1210
from easydiffraction.sample_models.sample_models import SampleModels

src/easydiffraction/analysis/calculators/calculator_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def calculate_pattern(
9696
y_calc_total = y_calc_scaled + y_bkg
9797
experiment.datastore.pattern.calc = y_calc_total
9898

99-
10099
@abstractmethod
101100
def _calculate_single_model_pattern(
102101
self,

tests/unit/analysis/test_minimization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ def mock_experiments():
4141
@pytest.fixture
4242
def mock_calculator():
4343
calculator = MagicMock()
44+
4445
def mock_calculate_pattern(sample_models, experiment, **kwargs):
4546
experiment.datastore.pattern.calc = np.array([9.0, 19.0, 29.0])
47+
4648
calculator.calculate_pattern.side_effect = mock_calculate_pattern
4749
return calculator
4850

tests/unit/analysis/test_reliability_factors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ def test_get_reliability_inputs():
9898
)
9999
)
100100
}
101+
101102
def mock_calculate_pattern(sample_models, experiment, **kwargs):
102103
experiment.datastore.pattern.calc = np.array([9.0, 19.0, 29.0])
104+
103105
calculator.calculate_pattern.side_effect = mock_calculate_pattern
104106

105107
y_obs, y_calc, y_err = get_reliability_inputs(sample_models, experiments, calculator)

0 commit comments

Comments
 (0)