Skip to content

Commit de5715b

Browse files
author
Boris Sekachev
committed
Removed extra variable, updated README.md
1 parent ad0322c commit de5715b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

utils/dicom_converter/README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,11 @@ DICOM files with series (multi-frame) are saved under the same name with a numbe
1111
python3 -m venv .env
1212
. .env/bin/activate
1313
pip install -r requirements.txt
14-
python3 script.py input_data output_data
14+
```
15+
16+
# Running
17+
18+
```
19+
. .env/bin/activate # if not activated
20+
python script.py input_data output_data
1521
```

utils/dicom_converter/script.py

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def main(root_dir, output_root_dir):
8080
pbar = tqdm(dicom_files)
8181
for input_filename in pbar:
8282
pbar.set_description('Conversion: ' + input_filename)
83-
input_subpath = input_filename.split(os.sep)[1:-1]
8483
input_basename = os.path.basename(input_filename)
8584

8685
output_subpath = os.path.relpath(os.path.dirname(input_filename), root_dir)

0 commit comments

Comments
 (0)