rvbCMTS / PySkinDose

MIT License
13 stars 4 forks source link

Silence pydicom validation warnings #59

Closed MaxHellstrom closed 1 month ago

MaxHellstrom commented 1 month ago

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).