Git Product home page Git Product logo

trialbureautools's Introduction

trialbureautools's People

Contributors

sjoerdk avatar pyup-bot avatar

Watchers

James Cloos avatar

trialbureautools's Issues

Sorter folder containing < and > in windows

  • trialbureautools version: 0.3.13
  • Python version: 3.10 (?)
  • Operating System: Windows (using cmd)

Description

Sorter crashed while sorting folder containing < and > in the foldername. In a previous update this was supposed to be fixed.

What I Did

C:\Users\manz645290>tbt sorter sort "C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012" eva
Sorting C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012 with pattern 'eva', writing to C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012_sorted
Found 24524. Mapping might take about 40 min,
Mapping all dicom files to output files...
Mapped 24524 files. No errors found
Do you want to start sorting files? [y/N]: y
[ ]
Traceback (most recent call last):
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\dicomsort\folderprocessing.py", line 79, in execute_mapping
makedirs(destination.parent, exist_ok=True)
File "C:\Program Files\Python310\lib\os.py", line 225, in makedirs
mkdir(name, mode)
OSError: [WinError 123] De syntaxis van de bestandsnaam, mapnaam of volumenaam is onjuist: 'C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012_sorted\21-008-EOC1_NG_WE_21088_PET-CT_ZR89-IAB22M2C_IPREDICT_STUDIE\Range-CT_LD__3.0__B31f-Tra-<ALPHA_Range>'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\Scripts\tbt.exe_main
.py", line 7, in
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\trialbureautools\cli\dicomsort.py", line 201, in sort
chunk.execute()
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\dicomsort\folderprocessing.py", line 170, in execute
return self.function(*self.args, self.kwargs)
File "C:\Users\manz645290\AppData\Roaming\Python\Python310\site-packages\dicomsort\folderprocessing.py", line 83, in execute_mapping
raise FolderMapperException(msg)
dicomsort.folderprocessing.FolderMapperException: Error trying to copy C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012\21-008-EOC1\NG_WE_21088_PET-CT_ZR89-IAB22M2C_IPREDICT_STUDIE-5708381427642399\Range-CT_LD_3.0_B31f-Tra-ALPHA_Range-CT-603\106 to C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012_sorted\21-008-EOC1_NG_WE_21088_PET-CT_ZR89-IAB22M2C_IPREDICT_STUDIE\Range-CT_LD__3.0__B31f-Tra-<ALPHA_Range>\1.3.6.1.4.1.14519.5.2.1.9999.9999.154953055571505120176550263679: [WinError 123] De syntaxis van de bestandsnaam, mapnaam of volumenaam is onjuist: 'C:\Users\manz645290\Desktop\iPREDICT_alles_van21008_tot_21012_sorted\21-008-EOC1_NG_WE_21088_PET-CT_ZR89-IAB22M2C_IPREDICT_STUDIE\Range-CT_LD__3.0__B31f-Tra-
<**ALPHA_Range>'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.