Skip to content

Commit

Permalink
Add missing params.py
Browse files Browse the repository at this point in the history
  • Loading branch information
multimeric committed Sep 22, 2023
1 parent e27b19e commit 02baf7b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions core/tests/params.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import pytest
import json
import yaml

from lls_core.models.output import SaveFileType

inputs = pytest.mark.parametrize(
["path"], [
("RBC_tiny.czi", ),
("RBC_lattice.tif", ),
("LLS7_t1_ch1.czi", ),
("LLS7_t1_ch3.czi", ),
("LLS7_t2_ch1.czi", ),
("LLS7_t2_ch3.czi", ),
("multich_multi_time.tif", ),
])
parameterized = pytest.mark.parametrize("args", [
{"skew": "X"},
{"skew": "Y"},
{"angle": 30},
{"angle": 90},
{"physical_pixel_sizes": (1, 1, 1)},
{"save_type": SaveFileType.h5},
{"save_type": SaveFileType.tiff},

# # Cropping enabled
# {"crop": {"roi_list": []}}core/lls_core/cropping.py,
])

# Allows parameterisation over two serialization formats
config_types = pytest.mark.parametrize(["save_func", "cli_param"], [
(json.dump, "--json-config"),
(yaml.safe_dump, "--yaml-config")
])

0 comments on commit 02baf7b

Please sign in to comment.