I just have a quick question about how the pylinac los analyser module generates the fluence maps. I know the following from the documentation: “fluence calculation is done by adding fluence snapshot by snapshot, and leaf pair by leaf pair. Each leaf pair is analyzed separately. First, to optimize, it checks if the leaf is under the y-jaw. If so, the fluence is left at zero; if not, the leaf (or jaw) ends are determined and the MU fraction of that snapshot is added to the total fluence. All snapshots are iterated over for each leaf pair until the total fluence matrix is built”.
However, when I create the fluence maps from a VMAT plan (with typically around 800 MUs per treatment) I never get even a maximum of 1 MU in any point of the fluence map. I would expect some points to accumulate many MUs. Is pylinac doing some sort of nomalisation or I am misunderstanding the way it works? Many thanks.
You’re not doing anything wrong. The fluence wasn’t being converted to absolute dose for tlogs =/. I’ll fix this in the next release. In the meantime you can do one of two things. 1) you can add this line right here: fluence *= np.max(mu_matrix) in your installed pylinac package or 2) in your script don’t use .plot_map(), do this instead:
I do this so I can import the .txt files in another software to edit the expected, actual and gamma plots.
Like you said if I add this line fluence *= np.max(self._mu.actual) should it be ok?
Another question. The gamma pass calculation and the average gamma should be still being calculated correctly by pylinac even without multiplying the MU by the fluence?.