Hi James
My apologies for being so quite on the pylinac front. I’ve been assisting with some other software and implementing FFF parameters in my own. I would like to bring what I have learned to pylinac and extend the FlatSym module with more parameters.
Although the FlatSym module can be extended easily as it stands I would like to refactor the module a bit and make all the parameters such as field edge and penumbra definable in a protocol set. This is to accommodate FFF parameters where the standard definitions of field edge (FWHM) and penumbra don’t hold.
I would also like to make the protocol set definable to make it easier to define a protocol as a set of parameters.
So essentially what I am proposing is something along the lines of:
“”“Function definitions for parameter calculations here
.
.
.”“”
PROTOCOLS = {
‘varian’: VARIAN_PARAMS,
‘elekta’: ELEKTA_PARAMS,
‘DIN’: DIN_PARAMS,
‘IEC’: IEC_PARAMS,
‘FFF’: FFF_PARAMS,
etc.}
VARIAN_PARAMS = {
'Field Edge: get_field_edges,
‘Field Size’: get_field_size,
‘Penumbra’: get_penumbra,
‘Symmetry’: symmetry_point_difference,
‘Flatness’: flatness_varian
}
We would need some kind of workaround for backwards compatibility, but in general do you think something like this would work and would you like to see it in pylinac?
Regards
Alan