Coder Social home page Coder Social logo

Comments (6)

laurennlam avatar laurennlam commented on July 27, 2024 1

I need to go deeper on Dicom tags to understand more this case.
Thanks!

from dicom-anonymizer.

laurennlam avatar laurennlam commented on July 27, 2024 1

After some reasearches, this kind of tag has been introduced in the library in order to manage Repeating Groups.
Indeed, this case is not handled in the anonymize_dataset function for private tags. I'll make a pull request for it. Also, it's a real issue if we change the default associated action to these tags. Today, there are deleted. The delete function manages the case with 4 tags but it's the only one.
That's why the anonymize_dataset function needs to be updated in order to not adding this case in all actions methods.

So, to conclude, having 4 values in a tag is not a dicom convention but specific to this library.
Thanks for pointed it out.

from dicom-anonymizer.

laurennlam avatar laurennlam commented on July 27, 2024

Thanks for sharing this issue.
Do you have a file you can share so that I can check this on my side ?

from dicom-anonymizer.

LudvigOlsen avatar LudvigOlsen commented on July 27, 2024

Hi Laurenn,

I don't have a file, I can share no. Does this not happen with the data you are testing with?
I think pydicom might have a way to make a dummy image to test with.

from dicom-anonymizer.

laurennlam avatar laurennlam commented on July 27, 2024

I don't have any file with this kind of tag.
It seems that sometime, we handle this case :

def delete(dataset, tag):
    """X - remove"""

    def range_callback(dataset, data_element):
        if data_element.tag.group & tag[2] == tag[0] and data_element.tag.element & tag[3] == tag[1]:
            delete_element(dataset, data_element)

    if len(tag) > 2:  # Tag ranges
        dataset.walk(range_callback)

When do you have the issue ? Can you describe more the context ?

from dicom-anonymizer.

LudvigOlsen avatar LudvigOlsen commented on July 27, 2024

Right, my files did not have them either. But because these tags are part of the dicomfields.py lists, get() is called on it and fails. So I get the error message for all files (I call on one file at a time btw.). I believe the solution in my PR would work (although perhaps a bit hacky).
I should say that I'm no longer working on this project.

from dicom-anonymizer.

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.