Skip to content

Instantly share code, notes, and snippets.

@jrkerns
Last active December 5, 2022 18:18
Show Gist options
  • Save jrkerns/a99cefc8027b12d56258b8437ea0a5ee to your computer and use it in GitHub Desktop.
Save jrkerns/a99cefc8027b12d56258b8437ea0a5ee to your computer and use it in GitHub Desktop.
Smooth WL images before plotting and shorten path name
import pylinac
wl = pylinac.WinstonLutz.from_demo_images()
wl.analyze()
for img in wl.images:
img.filter(size=0.01, kind='gaussian')
img.path = "..." + img.path[-20:] # last 20 chars
wl.plot_images()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment