Skip to content

Commit

Permalink
allow all manufacturers for existing projects
Browse files Browse the repository at this point in the history
  • Loading branch information
p-j-smith committed Jan 21, 2025
1 parent f1eed49 commit 46d2109
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pixl_dcmd/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def ids_for_parameterised_test(val: pathlib.Path) -> str:

@pytest.mark.parametrize(
("yaml_file"),
PROJECT_CONFIGS_DIR.glob("test-*.yaml"),
PROJECT_CONFIGS_DIR.glob("*.yaml"),
ids=ids_for_parameterised_test,
)
def test_anonymise_and_validate_dicom(caplog, request, yaml_file) -> None:
Expand Down
7 changes: 6 additions & 1 deletion projects/configs/despiad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ tag_operation_files:
- "despiad.yaml"
manufacturer_overrides: []

allowed_manufacturers:
- regex: ".*"
exclude_series_numbers: []

min_instances_per_series: 1

series_filters: []

destination:
dicom: "none"
dicom: "xnat"
parquet: "none"
6 changes: 6 additions & 0 deletions projects/configs/ms-pinpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ tag_operation_files:
- "ms-pinpoint.yaml"
manufacturer_overrides: ["mri.yaml"]

allowed_manufacturers:
- regex: ".*"
exclude_series_numbers: []

min_instances_per_series: 1

series_filters:
- "localizer"
- "localiser"
Expand Down
6 changes: 6 additions & 0 deletions projects/configs/prognosis-ai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ tag_operation_files:
- "ion-neuro-db.yaml"
manufacturer_overrides: ["mri.yaml"]

allowed_manufacturers:
- regex: ".*"
exclude_series_numbers: []

min_instances_per_series: 1

series_filters:
- "localizer"
- "localiser"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ tag_operation_files:
- "base.yaml" #Expected base config file for any project
- "xray.yaml"
manufacturer_overrides: null

allowed_manufacturers:
- regex: ".*"
exclude_series_numbers: []

min_instances_per_series: 1

destination:
dicom: "ftps"
parquet: "ftps"
7 changes: 7 additions & 0 deletions projects/configs/uclh-prostate-mri-external-dataset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ tag_operation_files:
- "mri.yaml"
- "diffusion-weighted-mri.yaml"
manufacturer_overrides: ["mri.yaml", "mri-diffusion.yaml"]

allowed_manufacturers:
- regex: ".*"
exclude_series_numbers: []

min_instances_per_series: 1

destination:
dicom: "ftps"
parquet: "ftps"
12 changes: 12 additions & 0 deletions template_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ tag_operation_files: # DICOM tag anonymisation operations
- "base-tag-operations.yaml" # Base schema
manufacturer_overrides: none # Manufactuer-dependendent overrides

allowed_manufacturers:
- regex: ".*" # allow all manufacturers
exclude_series_numbers: []

min_instances_per_series: 1

series_filters:
- "localizer"
- "localiser"
- "scout"
- "positioning"

destination:
dicom: "ftps" # alternatives: "dicomweb", "xnat", "none"
parquet: "ftps" # alternatives: "none"

0 comments on commit 46d2109

Please sign in to comment.