jrkerns / pylinac

An image analysis library for medical physics
https://pylinac.readthedocs.io/en/latest/
MIT License
153 stars 98 forks source link

Only moving leaves setting for average RMS doesn't seem to be working in TrajectoryLog module #414

Open gbaltz opened 2 years ago

gbaltz commented 2 years ago

First off, I couldn't find a way to pass this setting through when using TrajectoryLog.publish_pdf()

so what I did is open the log_analyzer.py in my venv and within the TrajectoryLog class, under the publish_pdf() def I changed the line to "f'Average RMS (mm): {self.axis_data.mlc.get_RMS_avg(only_moving_leaves=True)*10:2.2f}',"

image

but after making this change I never see any change in the reported average RMS. I have tried this with a few clinical log files now, and it seems to me it is always including the non-moving leaves because I am always getting reported average RMS ~0.01

gbaltz commented 2 years ago

For example the Trajectory log below reports an Average RMS of 0.01 both if I run it using the defaults and if I run it with "only_moving_leaves=True". But if I just look at the plot I would guess the only moving leaves average should be larger than 0,01

image