Coder Social home page Coder Social logo

Comments (6)

dclunie avatar dclunie commented on July 19, 2024 2

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.

erikogabrielsson avatar erikogabrielsson commented on July 19, 2024 1

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.

erikogabrielsson avatar erikogabrielsson commented on July 19, 2024

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.

DanielaSchacherer avatar DanielaSchacherer commented on July 19, 2024

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:
Bildschirmfoto vom 2022-03-24 15-39-26

Bildschirmfoto vom 2022-03-24 15-40-04

Thanks again!

from wsidicom.

DanielaSchacherer avatar DanielaSchacherer commented on July 19, 2024

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.

erikogabrielsson avatar erikogabrielsson commented on July 19, 2024

Was this issue raised in the pydicom repo?

from wsidicom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.