Skip to content

Silence pydicom validation warnings#59

Merged
MaxHellstrom merged 7 commits intomasterfrom
silence-pydicom-validation-warnings
Oct 18, 2024
Merged

Silence pydicom validation warnings#59
MaxHellstrom merged 7 commits intomasterfrom
silence-pydicom-validation-warnings

Conversation

@MaxHellstrom
Copy link
Copy Markdown
Collaborator

With the suggested changes, you can silence annoying pydicom warning messages by setting settings.silence_pydicom_warnings = True in PyskindoseSettings. All relevant test and development setting files have been updated accordingly.

If you're using rdsr_parser as a standalone function, you can suppress warnings by setting its silence_pydicom_warnings attribute to True. For example: data_parsed = rdsr_parser(data_raw, silence_pydicom_warnings=True).

@MaxHellstrom MaxHellstrom requested a review from BwKodex October 16, 2024 20:17
@MaxHellstrom MaxHellstrom merged commit d4301c3 into master Oct 18, 2024
@MaxHellstrom MaxHellstrom deleted the silence-pydicom-validation-warnings branch October 18, 2024 11:42
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