From 61702fa276e6f67d93f746b5b64222f03766af5e Mon Sep 17 00:00:00 2001 From: Phillip Chlap Date: Wed, 13 Dec 2023 10:22:23 +1100 Subject: [PATCH] Fix linting recommendation --- pydicer/visualise/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydicer/visualise/data.py b/pydicer/visualise/data.py index 2f41dff..28f1ee3 100644 --- a/pydicer/visualise/data.py +++ b/pydicer/visualise/data.py @@ -139,7 +139,7 @@ def visualise(self, dataset_name=CONVERTED_DIR_NAME, patient=None, force=True): patient_logger.eval_module_process("visualise", row.hashed_uid) logger.debug("Created CT visualisation: %s", vis_filename) - if row.modality == "MR" or row.modality == "PT": + if row.modality in ("MR", "PT"): img_path = Path(row.path) vis_filename = img_path.joinpath(f"{row.modality}.png")