Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass aux_vr to SQ elements in dcm_write #88

Merged
merged 6 commits into from
May 23, 2024

Conversation

AaronGhost
Copy link
Contributor

  • Ensure that auxilliary VR provided by the user is passed when writing all tags including the ones in sequences. This can be used to write private tags and provide VR when multiple are possible (See dcm_write bug #87).

  • Deactivate tests for non-available file (DX_Implicit_Little_Interleaved)

  • Add a test where the VR type of a tag within a sequence is changed when written.

@notZaki
Copy link
Member

notZaki commented May 17, 2024

Thanks for working on this (and for identifying the original issue)!

It's been a while since this package was updated, so I'll try to see if the test data can be fixed.

@AaronGhost
Copy link
Contributor Author

I think I might have some more issues with the dcm_write function, do you prefer me to add them into my original issue or would you prefer I open extra issues for it?

@notZaki
Copy link
Member

notZaki commented May 22, 2024

Either works.

@AaronGhost AaronGhost mentioned this pull request May 22, 2024
Copy link

codecov bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.08%. Comparing base (cfee5eb) to head (ab56ed2).

Current head ab56ed2 differs from pull request most recent head eb31cab

Please upload reports for the commit eb31cab to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #88      +/-   ##
==========================================
- Coverage   92.85%   91.08%   -1.78%     
==========================================
  Files           2        2              
  Lines         392      314      -78     
==========================================
- Hits          364      286      -78     
  Misses         28       28              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AaronGhost
Copy link
Contributor Author

I added some fixes for the two last issues. The only one I am not entirely sure how to deal with is the tags with multiple possible VR:

  • The VR from the data could be parsed as a lower-level aux_vr
  • The VR could be determined from the standard requirement
  • The VR could just be picked as the first few characters
  • Something else???

Let me know what you think is best

@notZaki
Copy link
Member

notZaki commented May 22, 2024

Thanks!
I opened a PR for your branch that should fix the tests on nightly.

The multi-VR problem is tricky. Ideally, we should use the standard to figure out the appropriate VR, but that's also the most amount of work to resolve everything on a case by case basis. For example, :RealWorldValueLastValueMapped should have it's VR determined by :PixelRepresentation (0028,0103).
I remember trying to work on something similar, but ran into some edge cases where the VR depends on a value that occurs later in the file, e.g. imagine if VR for (0028, xxxx) depended on (0030, xxxx), and so gave up for my own sanity. Maybe I overlooked something, or maybe the newer standard is better.

I suppose the first step is to update dcm_dict and get an idea of how many multi-VR fields there are. I think I have a script for that somewhere. I'll try to find it.

Update test file & fix testing failing on nightly
@notZaki notZaki merged commit 5b98994 into JuliaHealth:master May 23, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants