Closed sofia-calgaro closed 1 year ago
before merging, still need to
Checks for correctness of append
option done for:
wf_max_rel
) oand not-special (baseline
)baseline
vs cuspEmax
)baseline
vs wf_max_rel
)The evaluation of the mean column is fixed when using the append
option. Before, multiple values were present for a fixed detector because doing old_df[param_mean] = new_df[param_mean]
I was not considering that the two dataframes actually have different lengths. Now we map the new mean values saved in new_df
into old_df
, making the mapping through the channel ID, and then we merge horizontally the two dataframes.
Previously, I hadn't tested the
"saving": "append"
case for special parameters too. The point is that we need to load also columns for the parameters we used to get the special one (egbaseline
andwf_max
forwf_max_rel
). Of course this applies if the special parameter is based on notnull
parameters (seesettings/special-parameters.json
for more info).