Skip to content

Commit

Permalink
Removed extra variable, updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Sekachev committed Apr 19, 2021
1 parent ad0322c commit de5715b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 7 additions & 1 deletion utils/dicom_converter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,11 @@ DICOM files with series (multi-frame) are saved under the same name with a numbe
python3 -m venv .env
. .env/bin/activate
pip install -r requirements.txt
python3 script.py input_data output_data
```

# Running

```
. .env/bin/activate # if not activated
python script.py input_data output_data
```
1 change: 0 additions & 1 deletion utils/dicom_converter/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def main(root_dir, output_root_dir):
pbar = tqdm(dicom_files)
for input_filename in pbar:
pbar.set_description('Conversion: ' + input_filename)
input_subpath = input_filename.split(os.sep)[1:-1]
input_basename = os.path.basename(input_filename)

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

0 comments on commit de5715b

Please sign in to comment.