Refactor the global dictionaries as attributes of a class, and make a global instance so the current API can be preserved.
These global can be problematic to call sourcextractor from Python, specially if someone wants to call sourcextractor from notebooks or ipython.
There are some dirty hacks in place to keep API compatibility, though.
Eventually, the call to setupContext that recovers the global could be replaced with an explicit setupContext(context)
Refactor the global dictionaries as attributes of a class, and make a global instance so the current API can be preserved. These global can be problematic to call sourcextractor from Python, specially if someone wants to call sourcextractor from notebooks or ipython.
There are some dirty hacks in place to keep API compatibility, though.
Eventually, the call to
setupContext
that recovers the global could be replaced with an explicitsetupContext(context)