Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include path in error message when dicom path from config file doesn't exist #40

Open
notmatthancock opened this issue Oct 13, 2020 · 0 comments
Labels

Comments

@notmatthancock
Copy link
Owner

If a user specifies a non-existent DICOM path in the pylidc config file, an error message is shown. This error message would be more helpful if it included the DICOM path that cannot be located from the config file:

pylidc/pylidc/Scan.py

Lines 209 to 215 in 20beb61

dicompath = _get_dicom_file_path_from_config_file()
if not os.path.exists(dicompath):
msg = ("Could not establish path to dicom files. Have you "
"specified the `path` option in the configuration "
"file {}?")
raise RuntimeError(msg.format(_get_config_file()))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant