Skip to content
Snippets Groups Projects
Commit 0a48088c authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Fix custom metric test constrains.

parent d870cdd1
No related branches found
No related tags found
1 merge request!18Several changes including chunking and expansion of examples.
...@@ -115,7 +115,7 @@ class TestAnalyzer(TestClass): ...@@ -115,7 +115,7 @@ class TestAnalyzer(TestClass):
# Check that the analysis using a custom metric defined with a plugin works # Check that the analysis using a custom metric defined with a plugin works
datasets = ["dataset_%iD.nc" % dimension for dimension in range(1, 4)] datasets = ["dataset_%iD.nc" % dimension for dimension in range(1, 4)]
constrains = f"{custom_metric_name}:3" constrains = f"{custom_metric_name}:.1"
for ds in datasets: for ds in datasets:
input_path = input_tempdir / ds input_path = input_tempdir / ds
......
...@@ -102,7 +102,7 @@ class TestCommandLineInterface(TestClass): ...@@ -102,7 +102,7 @@ class TestCommandLineInterface(TestClass):
with open(plugin_path, "w") as f: with open(plugin_path, "w") as f:
f.write(function_code) f.write(function_code)
commands = ["_", "analyze", str(file_path), "--constrains", f"{plugin_name}:4", "--plugins", commands = ["_", "analyze", str(file_path), "--constrains", f"{plugin_name}:.1", "--plugins",
str(plugin_path), "-c", "zfp"] str(plugin_path), "-c", "zfp"]
mocker.patch("sys.argv", commands) mocker.patch("sys.argv", commands)
enstools.compression.cli.main() enstools.compression.cli.main()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment