@@ -56,9 +56,9 @@ def test_binning_1d() -> None:
56
56
print (result )
57
57
assert min (result ) < targets ["binning_1d" ]
58
58
# update targets if substantial improvement occurs
59
- if np .mean (result ) < 0.8 * targets ["binning_1d" ]:
60
- print (f"Updating targets for 'binning_1d' to { float (np .mean (result ) * 1.2 )} " )
61
- targets ["binning_1d" ] = float (np .mean (result ) * 1.2 )
59
+ if np .mean (result ) < 0.75 * targets ["binning_1d" ]:
60
+ print (f"Updating targets for 'binning_1d' to { float (np .mean (result ) / 0.75 )} " )
61
+ targets ["binning_1d" ] = float (np .mean (result ) / 0.75 )
62
62
save_config (targets , package_dir + "/../benchmarks/benchmark_targets.yaml" )
63
63
64
64
@@ -80,9 +80,9 @@ def test_binning_4d() -> None:
80
80
print (result )
81
81
assert min (result ) < targets ["binning_4d" ]
82
82
# update targets if substantial improvement occurs
83
- if np .mean (result ) < 0.8 * targets ["binning_4d" ]:
84
- print (f"Updating targets for 'binning_4d' to { float (np .mean (result ) * 1.2 )} " )
85
- targets ["binning_4d" ] = float (np .mean (result ) * 1.2 )
83
+ if np .mean (result ) < 0.75 * targets ["binning_4d" ]:
84
+ print (f"Updating targets for 'binning_4d' to { float (np .mean (result ) / 0.75 )} " )
85
+ targets ["binning_4d" ] = float (np .mean (result ) / 0.75 )
86
86
save_config (targets , package_dir + "/../benchmarks/benchmark_targets.yaml" )
87
87
88
88
@@ -105,9 +105,9 @@ def test_splinewarp() -> None:
105
105
print (result )
106
106
assert min (result ) < targets ["inv_dfield" ]
107
107
# update targets if substantial improvement occurs
108
- if np .mean (result ) < 0.8 * targets ["inv_dfield" ]:
109
- print (f"Updating targets for 'inv_dfield' to { float (np .mean (result ) * 1.2 )} " )
110
- targets ["inv_dfield" ] = float (np .mean (result ) * 1.2 )
108
+ if np .mean (result ) < 0.75 * targets ["inv_dfield" ]:
109
+ print (f"Updating targets for 'inv_dfield' to { float (np .mean (result ) / 0.75 )} " )
110
+ targets ["inv_dfield" ] = float (np .mean (result ) / 0.75 )
111
111
save_config (targets , package_dir + "/../benchmarks/benchmark_targets.yaml" )
112
112
113
113
@@ -139,9 +139,9 @@ def test_workflow_1d() -> None:
139
139
print (result )
140
140
assert min (result ) < targets ["workflow_1d" ]
141
141
# update targets if substantial improvement occurs
142
- if np .mean (result ) < 0.8 * targets ["workflow_1d" ]:
143
- print (f"Updating targets for 'workflow_1d' to { float (np .mean (result ) * 1.2 )} " )
144
- targets ["workflow_1d" ] = float (np .mean (result ) * 1.2 )
142
+ if np .mean (result ) < 0.75 * targets ["workflow_1d" ]:
143
+ print (f"Updating targets for 'workflow_1d' to { float (np .mean (result ) / 0.75 )} " )
144
+ targets ["workflow_1d" ] = float (np .mean (result ) / 0.75 )
145
145
save_config (targets , package_dir + "/../benchmarks/benchmark_targets.yaml" )
146
146
147
147
@@ -173,9 +173,9 @@ def test_workflow_4d() -> None:
173
173
print (result )
174
174
assert min (result ) < targets ["workflow_4d" ]
175
175
# update targets if substantial improvement occurs
176
- if np .mean (result ) < 0.8 * targets ["workflow_4d" ]:
177
- print (f"Updating targets for 'workflow_4d' to { float (np .mean (result ) * 1.2 )} " )
178
- targets ["workflow_4d" ] = float (np .mean (result ) * 1.2 )
176
+ if np .mean (result ) < 0.75 * targets ["workflow_4d" ]:
177
+ print (f"Updating targets for 'workflow_4d' to { float (np .mean (result ) / 0.75 )} " )
178
+ targets ["workflow_4d" ] = float (np .mean (result ) / 0.75 )
179
179
save_config (targets , package_dir + "/../benchmarks/benchmark_targets.yaml" )
180
180
181
181
@@ -199,10 +199,10 @@ def test_loader_compute(loader: BaseLoader) -> None:
199
199
print (result )
200
200
assert min (result ) < targets [f"loader_compute_{ loader_name } " ]
201
201
# update targets if substantial improvement occurs
202
- if np .mean (result ) < 0.8 * targets [f"loader_compute_{ loader_name } " ]:
202
+ if np .mean (result ) < 0.75 * targets [f"loader_compute_{ loader_name } " ]:
203
203
print (
204
204
f"Updating targets for loader_compute_{ loader_name } ' "
205
- f"to { float (np .mean (result ) * 1.2 )} " ,
205
+ f"to { float (np .mean (result ) / 0.75 )} " ,
206
206
)
207
- targets [f"loader_compute_{ loader_name } " ] = float (np .mean (result ) * 1.2 )
207
+ targets [f"loader_compute_{ loader_name } " ] = float (np .mean (result ) / 0.75 )
208
208
save_config (targets , package_dir + "/../benchmarks/benchmark_targets.yaml" )
0 commit comments