You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
X and I talked about restructuring the front end of pypit to make it more clear and to hopefully remove some of the difficulties with the global objects.
First, I'm going to start a branch that will move the creation of the logger into the pypit/init.py file so that it's immediately available within the package. A main goal is to hopefully remove the requirement on the order in which the logger and other modules are imported. One subtlety it to make sure that the log file is correctly defined at the relevant locations.
The effect of this will touch many files, but I'm aiming that the only visible difference will be that:
from pypit import armsgs
msgs = armsgs.get_logger()
X and I talked about restructuring the front end of pypit to make it more clear and to hopefully remove some of the difficulties with the global objects.
First, I'm going to start a branch that will move the creation of the logger into the pypit/init.py file so that it's immediately available within the package. A main goal is to hopefully remove the requirement on the order in which the logger and other modules are imported. One subtlety it to make sure that the log file is correctly defined at the relevant locations.
The effect of this will touch many files, but I'm aiming that the only visible difference will be that:
should just become:
For an example, see here:
https://github.com/sdss/marvin/blob/master/python/marvin/__init__.py
Because
log
is defined at line 45, it's immediately available in the package by just saying:I'm hoping that something similar can be done with
settings
. But first things first ...The text was updated successfully, but these errors were encountered: