With get_snapshot_values, we can obtain the positions of each leaf for each snapshot in the trajectory log. However, when the fields/arcs are auto-sequenced, only one trajectory log is generated including all the fields/arcs. I am trying to obtain the snapshots corresponding to each subbeam in the log, but I can’t find an easy way.
I finally could find some time to retake this topic. What I trying to do is to obtain MLC metrics (RMS and percentiles) for the leafs of each subbeam in the log (I am working with auto-sequenced logs). To do so, for instante, to get the max RMS of bank A for the first subbeam, I first tried:
However, I realized that this is not the rigth way, as I am obtaining the same values for each subbeam, which is not obviusly correct.
So, is it possible to use the functions defined to get RMS and percentile values so you can specify what snapshots should be used to perform the calculation?
The problem is that the subbeam instance pointed to the snapshot index of MLC instance of the file, Not the beam.
The RMS is calculated in the _RMS_array_all_leaves. The dirty fix is to write a function to calculate the RMS of your own with a parameter of snapshot_idx to calculate the RMS of corresponding beam.