wrssc / ray_scripts

Python scripts for RayStation treatment planning system
GNU General Public License v3.0
23 stars 4 forks source link

Issue 131 #132

Closed rabayliss closed 4 years ago

rabayliss commented 4 years ago

DicomExport.py: -Added exception handling for a tomotherapy plan already having been transferred to iDMS

BeamOperations: filter_leaves(): -Leaves in dynamic fields are being erroneously activated. These leaves are entirely outside the jaw-defined fields. When the ciao is returned it reports these leaves and will, when jaw-offsets are used, set the aperature too large. -filter_leaves looks first for the minimum equivalent square of the jaw-defined beam. If the area is less than 3 cm, then the ciao is tested. -we rely on the raystation set jaws, which are based on target dimension without an discernable reference to the mlcs. the jaws are moved in to the edge of a target. Thus leaves that are outside the initial jaw positions that are open, should have positions (0,0), i.e. inactive. -The script finds the leaves outside jaw positions, and zeros them -Created a leaf filtering module which looks for leaves that are set as dynamic zero (i.e. the minimum moving gap distance). -If these leaves are not moving from one control point to the next, then move these leaves to the projected jaw position once the jaws are opened to the offset values. -Rename Beams moved to plan_setup -Round Jaws created in plan_setup so users can apply this step separately from the final dose script if they want.

rounded_jaw_positions(): -added test to look at equivalent square field. Jaws fill have offsets applied if eq_square is less than 3 cm^2. Otherwise, rounded open -subject to machine constraints - otherwise rounded closed.

GeneralOperations.py get_machine() -gets the current machine RS object when supplied a machine name.

-Added final dose calculations to end of whole brain script … -Set OTV type to PTV for automated planning structs to allow treat settings to be applied. -Changed skin Type to Organ.