Closed iaraota closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 49.63%. Comparing base (
720bd0c
) to head (9efe8f9
). Report is 4 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@eagoetz thank you for the suggestions. The running example is the same link as before: https://ldas-jobs.ligo-la.caltech.edu/~iara.ota/summary/day/20240410/isc/coherence/
This PR addresses the issue encountered when computing coherence, which leads to a ValueError due to incompatible shapes, as illustrated in the following example:
This problem often arises from utilizing the same channel across different coherence plots. It may occur when additional data is available during the computation of another plot, causing discrepancies in the segments of
globalv.COHERENCE_COMPONENTS
for that channel and the previously computed channel when saved to the HDF5 archive.To tackle this issue, this PR ensures that all coherence components used have consistent segments within the globalv.COHERENCE_COMPONENTS variable.
Testing this PR
To test this PR copy the corrupted archive located in
/home/iara.ota/public_html/summary/day/20240410/archive/L1-LSC_COHERENCE-1396742418-86400.h5_bkp
to the local/home/${USER}/public_html/summary/day/20240410/archive
folder and rename it to remove the_bkp
suffix. Run the GWSumm process for the LSC Coherence tab with the detchar conda environment to make sure the archive is corrupted and then with this PR changes:Run example: https://ldas-jobs.ligo-la.caltech.edu/~iara.ota/summary/day/20240410/isc/coherence/