Closed nbassler closed 1 year ago
AI-Generated Summary: This pull request includes two patches:
Adds options to flip x, y or both axes for input data in pymchelper/utils/radiotherapy/plan.py
. The options can be used to flip the coordinates, which might be helpful in certain use cases.
Updates tests/test_plan.py
to include test cases for the newly introduced flip options. It adds a parameterization for option_name
, covering 'flip', 'xflip', and 'yflip' cases.
AI-Generated Summary: This pull request adds options to flip the x and y-axes separately in the radiotherapy plan, modifies the corresponding tests, and refactors the argument parsing to support these new options. The changes involve updating the Plan class and the load, export, and main functions in the plan.py
file. New tests are added in test_plan.py
to test the flip, xflip, and yflip options, and a test fix is included for non-empty option strings.
💻 Coding Time: 8 minutes 🛻 Pickup Time: 3 days 👀 Review Time: 12 minutes
@grzanka can you take a look?
fix for #609