HERA-Team / hera_cal

Library for HERA data reduction, including redundant calibration, absolute calibration, and LST-binning.
MIT License
13 stars 8 forks source link

`datacontainer.RedDataContainer` has slow setter method #893

Closed tyler-a-cox closed 1 year ago

tyler-a-cox commented 1 year ago

Updating and setting data in datacontainer.RedDataContainer is slower (~0.2 seconds per key set) now that we've migrated to using red_group.RedundantGroups to track redundancies. It seems that this is due to a new instance of RedundantGroups being created when running RedDataContainer.__setitem__, which requires a new mapping between baselines and the baseline key representing a redundant group (in _bl_to_red_map) to be computed.

tyler-a-cox commented 1 year ago

Resolved by https://github.com/HERA-Team/hera_cal/pull/896