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

Allow customisable tag operations per MR model #354

Conversation

milanmlft
Copy link
Member

  • Add example tags for MRI diffusion data
  • Update test config to take manufacturer overrides
  • Update project config template with base and manufacturer overrides
  • Update project config handler to allow manufacturer overrides
  • Add simple test for merging multiple tag schemes
  • project_config: make manufacturer overrides optional
  • project_config: export TagOperations
  • Refactor merge_tag_schemes so it can handle manufacturer overrides
  • Update test for base-only tag scheme
  • Add test fixture for manufacturer overridden tag scheme
  • Test if manufacturer overrides work
  • Actually apply the manufacturer overrides during anonymisation

Fixes #292

@milanmlft milanmlft marked this pull request as ready for review March 21, 2024 19:45
@milanmlft milanmlft requested a review from a team March 21, 2024 19:45
Copy link
Contributor

@stefpiatek stefpiatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this Milan, looks good - some suggestions here and there, happy to chat if morning me hasn't made much sense

pixl_core/src/core/project_config.py Outdated Show resolved Hide resolved
pixl_core/tests/test_project_config.py Outdated Show resolved Hide resolved
pixl_core/tests/test_project_config.py Outdated Show resolved Hide resolved
pixl_core/tests/test_project_config.py Show resolved Hide resolved
pixl_dcmd/src/pixl_dcmd/main.py Outdated Show resolved Hide resolved
pixl_dcmd/src/pixl_dcmd/main.py Outdated Show resolved Hide resolved
pixl_dcmd/tests/test_main.py Outdated Show resolved Hide resolved
projects/configs/tag-operations/mri-diffusion.yaml Outdated Show resolved Hide resolved
pixl_dcmd/src/pixl_dcmd/main.py Outdated Show resolved Hide resolved
@milanmlft milanmlft mentioned this pull request Mar 25, 2024
@milanmlft
Copy link
Member Author

Started adding unit test for anonymise_dicom() but will take a bit more work, so deferring to #360.
For now, system test should catch any problems with the complete anonymisation.

Copy link
Contributor

@stefpiatek stefpiatek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, thanks for this Milan. Mostly some file naming suggestions

pixl_core/src/core/project_config/tagoperations.py Outdated Show resolved Hide resolved
pixl_core/src/core/project_config/pixlconfig_model.py Outdated Show resolved Hide resolved
pixl_dcmd/src/pixl_dcmd/_tagschemes.py Outdated Show resolved Hide resolved
pixl_dcmd/src/pixl_dcmd/main.py Outdated Show resolved Hide resolved
pixl_dcmd/src/pixl_dcmd/_tagschemes.py Outdated Show resolved Hide resolved
pixl_dcmd/tests/test_tagschemes.py Outdated Show resolved Hide resolved
milanmlft and others added 3 commits March 27, 2024 11:23
@milanmlft milanmlft enabled auto-merge (squash) March 27, 2024 13:55
@milanmlft milanmlft merged commit 85257cb into main Mar 27, 2024
8 checks passed
@milanmlft milanmlft deleted the milanmlft/292-allow-dicom-tag-operations-to-be-customised-per-mr-model branch March 27, 2024 14:06
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.

Allow DICOM tag operations to be customised per MR model
2 participants