From e3597787d770ff36f09afeffc8e3eda76055907a Mon Sep 17 00:00:00 2001
From: Tamino Huxohl <thuxohl@techfak.uni-bielefeld.de>
Date: Wed, 4 Jan 2023 11:15:51 +0100
Subject: [PATCH] apply refactoring of a name change

---
 mu_map/polar_map/prepare.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/mu_map/polar_map/prepare.py b/mu_map/polar_map/prepare.py
index e9b55f3..9c86374 100644
--- a/mu_map/polar_map/prepare.py
+++ b/mu_map/polar_map/prepare.py
@@ -2,7 +2,7 @@ import argparse
 import os
 from typing import List
 
-from mu_map.file.dicom import dcm_type
+from mu_map.file.dicom import DICOM
 
 
 def get_files_recursive(_dir: str) -> List[str]:
@@ -24,19 +24,19 @@ def get_files_recursive(_dir: str) -> List[str]:
     return files
 
 
-def is_scatter_corrected(dcm: dcm_type) -> bool:
+def is_scatter_corrected(dcm: DICOM) -> bool:
     return not ("NoSC" in dcm.SeriesDescription)
 
 
-def is_attenuation_corrected(dcm: dcm_type) -> bool:
+def is_attenuation_corrected(dcm: DICOM) -> bool:
     return not ("NoAC" in dcm.SeriesDescription)
 
 
-def shows_segments(dcm: dcm_type) -> bool:
+def shows_segments(dcm: DICOM) -> bool:
     return "PolarMapSeg" in dcm.SeriesDescription
 
 
-def get_type(dcm: dcm_type) -> str:
+def get_type(dcm: DICOM) -> str:
     description = dcm.SeriesDescription.lower()
     if "syn" in description:
         return "synthetic"
@@ -65,7 +65,7 @@ if __name__ == "__main__":
 
     from mu_map.data.prepare import get_protocol
     from mu_map.data.prepare import headers as meta_headers
-    from mu_map.file.dicom import load_dcm, DCM_TAG_PIXEL_SCALE_FACTOR, dcm_type
+    from mu_map.file.dicom import load_dcm, DCM_TAG_PIXEL_SCALE_FACTOR, DICOM
     from mu_map.logging import add_logging_args, get_logger_by_args
 
     parser = argparse.ArgumentParser(
@@ -242,3 +242,4 @@ if __name__ == "__main__":
 
             data = data.sort_values(by=[headers.id, headers.file])
             data.to_csv(args.csv, index=False)
+
-- 
GitLab