|
35 | 35 | ) |
36 | 36 | from httomolibgpu.misc.rescale import rescale_to_int |
37 | 37 |
|
| 38 | +from httomo_backends.methods_database.packages.backends.httomolibgpu.supporting_funcs.misc.corr import * |
38 | 39 | from httomo_backends.methods_database.packages.backends.httomolibgpu.supporting_funcs.misc.morph import * |
39 | 40 | from httomo_backends.methods_database.packages.backends.httomolibgpu.supporting_funcs.prep.phase import * |
40 | 41 | from httomo_backends.methods_database.packages.backends.httomolibgpu.supporting_funcs.prep.stripe import * |
@@ -1166,3 +1167,94 @@ def test_FBP2d_astra_output_dim(): |
1166 | 1167 | recon_size=recon_size, |
1167 | 1168 | ) |
1168 | 1169 | assert output_dims == (recon_size, recon_size) |
| 1170 | + |
| 1171 | + |
| 1172 | +def test_remove_outlier_padding_calculator_fetches_default_param_value(): |
| 1173 | + try: |
| 1174 | + _calc_padding_remove_outlier(**{}) |
| 1175 | + except KeyError as e: |
| 1176 | + pytest.fail(f"Failed to get default value for {e} parameter") |
| 1177 | + |
| 1178 | + |
| 1179 | +def test_median_filter_padding_calculator_fetches_default_param_value(): |
| 1180 | + try: |
| 1181 | + _calc_padding_median_filter(**{}) |
| 1182 | + except KeyError as e: |
| 1183 | + pytest.fail(f"Failed to get default value for {e} parameter") |
| 1184 | + |
| 1185 | + |
| 1186 | +def test_data_resampler_memory_estimator_fetches_default_param_value(): |
| 1187 | + try: |
| 1188 | + _calc_memory_bytes_data_resampler((2, 2), np.float32(), **{"newshape": (1, 1)}) |
| 1189 | + except KeyError as e: |
| 1190 | + pytest.fail(f"Failed to get default value for {e} parameter") |
| 1191 | + |
| 1192 | + |
| 1193 | +def test_sino_360_to_180_output_dims_calculator_fetches_default_param_value(): |
| 1194 | + try: |
| 1195 | + _calc_output_dim_sino_360_to_180((1, 1), **{}) |
| 1196 | + except KeyError as e: |
| 1197 | + pytest.fail(f"Failed to get default value for {e} parameter") |
| 1198 | + |
| 1199 | + |
| 1200 | +def test_sino_360_to_180_memory_estimator_fetches_default_param_value(): |
| 1201 | + try: |
| 1202 | + _calc_memory_bytes_sino_360_to_180((1, 1), np.float32(), **{}) |
| 1203 | + except KeyError as e: |
| 1204 | + pytest.fail(f"Failed to get default value for {e} parameter") |
| 1205 | + |
| 1206 | + |
| 1207 | +def test_rescale_to_int_memory_estimator_fetches_default_param_value(): |
| 1208 | + try: |
| 1209 | + _calc_memory_bytes_rescale_to_int((1, 1), np.float32(), **{}) |
| 1210 | + except KeyError as e: |
| 1211 | + pytest.fail(f"Failed to get default value for {e} parameter") |
| 1212 | + |
| 1213 | + |
| 1214 | +def test_raven_filter_memory_estimator_fetches_default_param_value(): |
| 1215 | + try: |
| 1216 | + _calc_memory_bytes_raven_filter((1, 1), np.float32(), **{}) |
| 1217 | + except KeyError as e: |
| 1218 | + pytest.fail(f"Failed to get default value for {e} parameter") |
| 1219 | + |
| 1220 | + |
| 1221 | +def test_FBP2d_astra_output_dims_calculator_fetches_default_param_value(): |
| 1222 | + try: |
| 1223 | + _calc_output_dim_FBP2d_astra((1, 1), **{}) |
| 1224 | + except KeyError as e: |
| 1225 | + pytest.fail(f"Failed to get default value for {e} parameter") |
| 1226 | + |
| 1227 | + |
| 1228 | +def test_FBP3d_tomobar_output_dims_calculator_fetches_default_param_value(): |
| 1229 | + try: |
| 1230 | + _calc_output_dim_FBP3d_tomobar((1, 1), **{}) |
| 1231 | + except KeyError as e: |
| 1232 | + pytest.fail(f"Failed to get default value for {e} parameter") |
| 1233 | + |
| 1234 | + |
| 1235 | +def test_LPRec3d_tomobar_output_dims_calculator_fetches_default_param_value(): |
| 1236 | + try: |
| 1237 | + _calc_output_dim_LPRec3d_tomobar((1, 1), **{}) |
| 1238 | + except KeyError as e: |
| 1239 | + pytest.fail(f"Failed to get default value for {e} parameter") |
| 1240 | + |
| 1241 | + |
| 1242 | +def test_SIRT3d_tomobar_output_dims_calculator_fetches_default_param_value(): |
| 1243 | + try: |
| 1244 | + _calc_output_dim_SIRT3d_tomobar((1, 1), **{}) |
| 1245 | + except KeyError as e: |
| 1246 | + pytest.fail(f"Failed to get default value for {e} parameter") |
| 1247 | + |
| 1248 | + |
| 1249 | +def test_CGLS3d_tomobar_output_dims_calculator_fetches_default_param_value(): |
| 1250 | + try: |
| 1251 | + _calc_output_dim_CGLS3d_tomobar((1, 1), **{}) |
| 1252 | + except KeyError as e: |
| 1253 | + pytest.fail(f"Failed to get default value for {e} parameter") |
| 1254 | + |
| 1255 | + |
| 1256 | +def test_FISTA3d_tomobar_output_dims_calculator_fetches_default_param_value(): |
| 1257 | + try: |
| 1258 | + _calc_output_dim_FISTA3d_tomobar((1, 1), **{}) |
| 1259 | + except KeyError as e: |
| 1260 | + pytest.fail(f"Failed to get default value for {e} parameter") |
0 commit comments