Skip to content

Commit bcf9348

Browse files
committed
image_function -> simulate_function
1 parent 6755e41 commit bcf9348

File tree

1 file changed

+4
-4
lines changed
  • test_autofit/non_linear/grid/test_sensitivity

1 file changed

+4
-4
lines changed

test_autofit/non_linear/grid/test_sensitivity/conftest.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
x = np.array(range(10))
99

1010

11-
def image_function(instance: af.ModelInstance, simulate_path:Optional[str]):
11+
def simulate_function(instance: af.ModelInstance, simulate_path:Optional[str]):
1212
image = instance.gaussian(x)
1313
if hasattr(instance, "perturbation"):
1414
image += instance.perturbation(x)
@@ -21,7 +21,7 @@ def __init__(self, image: np.array):
2121
self.image = image
2222

2323
def log_likelihood_function(self, instance):
24-
image = image_function(instance, simulate_path=None)
24+
image = simulate_function(instance, simulate_path=None)
2525
return np.mean(np.multiply(-0.5, np.square(np.subtract(self.image, image))))
2626

2727

@@ -55,7 +55,7 @@ def make_sensitivity(
5555
gaussian=af.Model(af.Gaussian)
5656
),
5757
perturbation_model=perturbation_model,
58-
simulate_function=image_function,
58+
simulate_function=simulate_function,
5959
analysis_class=Analysis,
6060
search=search,
6161
number_of_steps=2,
@@ -81,7 +81,7 @@ def make_job(
8181
instance.gaussian = af.Gaussian()
8282
base_instance = instance
8383
instance.perturbation = af.Gaussian()
84-
image = image_function(instance, "")
84+
image = simulate_function(instance, "")
8585
# noinspection PyTypeChecker
8686
return s.Job(
8787
model=af.Collection(

0 commit comments

Comments
 (0)