Skip to content

Commit

Permalink
fix(deps):
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwilter committed Sep 30, 2024
1 parent b970328 commit 06cda59
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
fileignoreconfig:
- filename: poetry.lock
checksum: 0ad40dc799769c4734b1f5791c32eb5657f6a337fd70492d16b4b8878bdcbf9f
- filename: tests/test_utils.py
checksum: 14b8bbe03e3409d22c16b263cdb52a1c62ec080c53e49ec55faf9a6bb88260ed
version: ""
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ opencv-python-headless = "^4.10.0.84"
typer = "^0.12.5"
pydicom = "^3.0.1"
natsort = "^8.4.0"
pillow = "^10.4.1"
pillow = "^10.4.0"
python-gdcm = "^3.0.24.1"

[tool.poetry.scripts]
Expand Down
6 changes: 4 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,17 @@ def test_process_dcm_dummy(temp_output_dir):
input_dir="tests/dummy_ex", output_dir=temp_output_dir, overwrite=True
)
assert new_patient_key, original_patient_key == ("2375458543", "123456")
assert get_md5(os.path.join(temp_output_dir, "metadata.json")) == "1f2e613b856337aa46a35c641a95a4bd"
assert get_md5(os.path.join(temp_output_dir, "metadata.json"), bottom) == "75a81f29397d3919603a8d55b305fdb1"


def test_process_dcm_dummy_group(temp_output_dir):
new_patient_key, original_patient_key = process_dcm(
input_dir="tests/dummy_ex", output_dir=temp_output_dir, overwrite=True, group=True
)
assert new_patient_key, original_patient_key == ("2375458543", "123456")
assert get_md5(os.path.join(temp_output_dir, "group_0", "metadata.json")) == "1f2e613b856337aa46a35c641a95a4bd"
assert (
get_md5(os.path.join(temp_output_dir, "group_0", "metadata.json"), bottom) == "75a81f29397d3919603a8d55b305fdb1"
)


def test_process_dcm_dummy_mapping(temp_output_dir):
Expand Down

0 comments on commit 06cda59

Please sign in to comment.