Skip to content

Instantly share code, notes, and snippets.

@jrkerns
Created March 1, 2023 17:46
Show Gist options
  • Save jrkerns/85b5aefaaf8ea54c8066dac94f3fdac1 to your computer and use it in GitHub Desktop.
Save jrkerns/85b5aefaaf8ea54c8066dac94f3fdac1 to your computer and use it in GitHub Desktop.
import pylinac
from pylinac.winston_lutz import is_round, is_modest_size, is_symmetric
# monkey patch
pylinac.winston_lutz.WinstonLutz2D.detection_conditions = [is_round, is_modest_size, is_symmetric]
# use as normal
wl_dir = "..."
wl = pylinac.WinstonLutz(wl_dir, use_filenames=True)
wl.analyze()
wl.plot_summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment