Code Monkey home page Code Monkey logo

Comments (5)

hackermd avatar hackermd commented on June 13, 2024

Good point. I like the idea of declaring them "extra" dependencies.

from dicomweb-client.

hackermd avatar hackermd commented on June 13, 2024

I have thought about this a bit more and am considering deprecating the functionality for decoding images client side altogether. This is beyond the scope of this library and was probably not a good idea to take this on in the first place. The client could instead retrieve an image rendered from the server using the WADO-RS Retrieve Rendered Transaction.

from dicomweb-client.

hackermd avatar hackermd commented on June 13, 2024

@dimrozakis sorry for the slow turnaround. I have looked into the dependencies and think we could remove all dependencies but requests and pydicom (see e236023).

We would loose the ability to decompress and view images, but I think this should probably be handled outside of this library anyways. With hindsight, I should not have added this functionality to begin with.

What do you think?

I would like to add a few unit tests before releasing this, but would appreciate if you could already test it in your constrained environment.

from dicomweb-client.

dimrozakis avatar dimrozakis commented on June 13, 2024

Hi @hackermd

We would loose the ability to decompress and view images, but I think this should probably be handled outside of this library anyways.

I agree. And these features are technically only available in the CLI, any users of the library would have to handle them on their own even with the current implementation. Just as displaying DICOMs is presumably out of scope for this client, it makes sense that displaying JPEGs would be too. These features are also very easy to implement on the client side (of a library user) with just a few lines of code, so no great benefit by including it in. Overall I'd vote to deprecate these features & their dependencies.

I would like to add a few unit tests before releasing this, but would appreciate if you could already test it in your constrained environment.

I'm busy working on some other projects at the moment, but towards the end of the week I should be returning on this subject. I should also note that my usage of this project, as mentioned in the original post, is limited on the library (api.py::DICOMwebClient) and I haven't ever really used cli.py where all of the relevant changes are made in e236023, but I'll be pulling in your commit to try it out.

from dicomweb-client.

hackermd avatar hackermd commented on June 13, 2024

Dependencies have been removed since version 0.30

from dicomweb-client.

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.