Two simple questions

Hello James:

I would like to ask just two simple questions. The first one is: when you use mprof.plot, is that possible to visualize “secondary axes” on the graph.? The purpose of this question is that I use “mprof” to plot profiles of split beams and then I would like to visualize if the matching area is overdosed or underdosed graphically and numerically. Attached, you could find an image with a profile with an underdosed matching area.

The second question is the following: I would like to know if it is feasible to get the field size when you use the flatness/symmetry module. We usually check light vs radiation field coincidence using a film. This film can be used to obtain the flatness and symmetry but at the same time it would be advantageous for us to get the radiation field size. I don’t know if this can be done already using a certain command of the profile module…?

Thank you very much.

Roberto

image1.png

Roberto,
Good questions. For the first question, I’d like just a little more clarification. Are you comparing two separate images and wanting to plot each of them independently? If so, then you’ll have to do that using matplotlib directly. If you’re trying to compute the flatness of two matched fields (say jaw fields to test abutments) you should combine the images first and then use the flatsym module or just calculate it directly. If that’s what you’re trying to do then this gist should help, as well as this one which uses the flatsym module.

For the second question, the quick answer is: No, but it should be. The flatsym module has not been updated in a while because I don’t have very many open field images to test it on. See the end of the first gist I linked to on how to calculate field size. Version 1.6 will hopefully have a reworked flatsym module that will be more informative. Feel free to upload your own images as well; it can only make pylinac more robust.

Thank you very much for the gists which you have shared. This is what I really wanted to do. And yes, I have seen the command to calculate the field size.

Roberto