Skip to content

Instantly share code, notes, and snippets.

@jrkerns
Last active April 6, 2022 03:04
Show Gist options
  • Save jrkerns/4984bae5c323fabc00087996303615c2 to your computer and use it in GitHub Desktop.
Save jrkerns/4984bae5c323fabc00087996303615c2 to your computer and use it in GitHub Desktop.
offset 404
from pylinac.ct import CTP404CP504, CTP486, CTP528CP604, CTP515, CatPhan604, CTP404CP604
class CustomCatPhan604(CatPhan604):
modules = {
CTP404CP604: {'offset': 5}, # offset this; the rest are unmodified
CTP486: {'offset': -80},
CTP528CP604: {'offset': 42},
CTP515: {'offset': -40}
}
# use the class like normal
ct = CustomCatPhan604.from_zip(path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment