Skip to content

Commit

Permalink
fix: 🐛 Assign the right group id for multi-groups cases in metadata.json
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwilter committed Sep 4, 2024
1 parent d0c8f7e commit bc34be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process_dcm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def meta_images(dcm_obj: FileDataset) -> dict:
meta: dict = defaultdict(dict)
mod = dcm_obj.get("Modality")
meta["modality"] = mod.value
meta["group"] = 0
meta["group"] = dcm_obj.get("AccessionNumber", 0)
meta["size"]["width"] = dcm_obj.get("Columns", 0)
meta["size"]["height"] = dcm_obj.get("Rows", 0)
meta["field_of_view"] = dcm_obj.get("HorizontalFieldOfView")
Expand Down

0 comments on commit bc34be8

Please sign in to comment.