Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decrease RAM usage of RMtools (#109)
* Decrease RAM usage of RMtools This decreases the peak RAM usage by about 40-50 percent when write_separate_RMSF=True as we don't need to keep everything in memory. Additionally, it creates the option to do the RM synthesis and RMSF calculation separately instead of in the same function which decreases the RAM usage of the POSSUM Polarimetry pipeline by about 20-25 percent throughout, while not losing any noticable CPU time. To make this change, I did have to make sure lambda0Sq_m2 is reported by util_RM.py and handled correctly by both do_RMsynth_1D and do_RMsynth_3D. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alec Thomson (S&A, Kensington WA) <[email protected]> Co-authored-by: Cameron Van Eck <[email protected]>
- Loading branch information