Created
January 2, 2023 14:02
-
-
Save jrkerns/9eaa08f0c3fbf3f12e8c4b8e1310b2c9 to your computer and use it in GitHub Desktop.
leaf error lookup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pylinac | |
pf = pylinac.PicketFence(<your_file>) | |
# classic analysis combines the leaves together, so really you're looking at the pair. | |
pf.analyze() | |
my_leaf_error = [m.error[0] for m in pf.mlc_meas if m.leaf_num == 16] | |
# or if you're doing separate leaf analysis | |
pf.analyze(separate_leaves=True) | |
A = 0 | |
B = 1 | |
my_separated_leaf_errors = [m.error[A] for m in pf.mlc_meas if m.full_leaf_nums[A] == 'A16'] # replace w/ B if that's what you're looking for. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment