Skip to content

Conversation

NicolasGensollen
Copy link
Member

Very small PR which proposes to add a log_and_raise function to clinica.utils.stream to automatically log (using cprint) and raise a given error message. This will be useful for example in #1237

Also modifies adni_json.py where a less generic function was used to log and raise a specific error type.

@NicolasGensollen NicolasGensollen self-assigned this Jul 17, 2024
@NicolasGensollen NicolasGensollen marked this pull request as ready for review July 17, 2024 12:05
Copy link
Contributor

@AliceJoubert AliceJoubert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ! Thanks @NicolasGensollen

@NicolasGensollen NicolasGensollen merged commit ca77bab into aramis-lab:dev Jul 18, 2024
@NicolasGensollen NicolasGensollen deleted the add-log-and-raise branch July 18, 2024 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants