cositools / cosipy

The COSI high-level data analysis tools
Apache License 2.0
3 stars 16 forks source link

Refactor file loading to improve efficiency #177

Closed krishnatejavedula closed 1 month ago

krishnatejavedula commented 1 month ago

This commit refactors the code to load data from the file only once instead of multiple times. Instead of calling three times to extract different columns, the code now loads the file once and extracts all necessary columns from the loaded data array. This change improves code efficiency by reducing redundant file reads.

Changes made:

Closes issue #158

israelmcmc commented 1 month ago

I changed the base branch, from main to develop. This is a recent change of workflow. After that, I'm seeing an issue with the commit to be merged, so I'm going to close and reopen this to see if that fixes it.

israelmcmc commented 1 month ago

It seems that worked.