Comments (6)
Why is the pydicom code failing when the check is performed when the value is valid?
Shouldn't pydicom be fixed rather than worked around by deactivating the check, which might be valuable under other circumstances?
from wsidicom.
Good that it worked out. I noticed that wsidicom unnecessarily set the pydicom flag (which caused your problem), so it is good that you caught and reported this.
from wsidicom.
Hi Daniela,
Could you provide the whole stack trace for the error? I looks like miss-formatted value, and a possible workaround could be to relax the pydicom parsing. You could try (after importing wsidicom):
from pydicom import config
config.enforce_valid_values = False
from wsidicom.
Hi @erikogabrielsson,
thanks a lot for your fast answer. Me and also colleagues from mine checked the respective DICOM file and everything seemed well-formatted. However, your suggestion fixed the error. :)
For completion here is the whole stack trace for the error:
Thanks again!
from wsidicom.
No problem - thanks for helping out so fast. But I agree with David Clunie, this is probably an issue that should be reported to pydicom. I can do that and link this issue, if everyone here agrees :)
from wsidicom.
Was this issue raised in the pydicom repo?
from wsidicom.
Related Issues (20)
- Add recipie for conda HOT 6
- Automatic selection of offset table type HOT 1
- Consider making a new output folder when saving HOT 1
- Slow Initialization HOT 5
- Cannot Install 0.9.0 with Python 3.11 Via Conda/Mamba HOT 4
- Support opening dicom dirs
- add_missing_levels does not recreate missing levels HOT 7
- need to read from google cloud bucket HOT 5
- Unpin Pillow HOT 1
- Support combining multiple series for DICOMweb HOT 2
- Adding support for more transfer syntaxes HOT 10
- Add support for deciding DICOMweb transfer syntax HOT 12
- `file_meta` unavailable for instance from DICOMweb HOT 3
- Failed to parse LUT HOT 4
- PIL.UnidentifiedImageError: cannot identify image file HOT 1
- read_region() tile width and height appear to be reversed HOT 1
- HTTP Errors for Imaging Data Commons HOT 7
- Handle files missing extended_depth_of_field_bool HOT 4
- Unable to open dicomized data with wsidicom>=0.18.0 HOT 5
- Difference behaviour between WsiDicomFileSource and WsiDicomWebSource HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsidicom.