Refactor core.py
Opened this issue · 1 comments
The core.py file was meant to act as a central utility module where multiple other modules could find common functions. Over time, it has become bloated and it makes sense to move some of the related functions into its own module. For example, it might make sense to have:
gpu_core.pyfor all GPU-related utilitiesprocess.py/preprocess.pycheck.pyfor functions that "check" the state of an arrayrolling.pyfor anything related to rolling/sliding window computationsdistance.pymcore.pyfor all multi-dimensional utility functions
It is okay if core.py imports from these other modules and this would reduce the number of changes in our API modules (i.e., our user facing API modules wouldn't change at all as long as they continue importing from core.py). Of course, any refactoring will also involve moving their associated unit tests as well
The first thing would be to come up with a plan, then create separate issues for each new sub-module, and add each issue to a single milestone