Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | configs/manager.py: Add logging support | Aaron LI | 2016-10-04 | 1 | -2/+6 |
| | |||||
* | configs/manager.py: Add method "get_path()" | Aaron LI | 2016-10-04 | 1 | -0/+21 |
| | |||||
* | configs/manager.py: Add method "read_userconfig()" | Aaron LI | 2016-10-04 | 1 | -3/+35 |
| | | | | | | | | This "read_userconfig()" method is specifically used to load the user configuration file, and record the absolute path of the configuration file, which allows the use of relative path to specify the input files (e.g., galactic/synchrotron/template) for simulation within the configurations. | ||||
* | configs/manager.py: Fix a bug that "_validate()" not working | Aaron LI | 2016-10-04 | 1 | -1/+1 |
| | |||||
* | configs/manager.py: Add "frequencies" property | Aaron LI | 2016-10-04 | 1 | -0/+16 |
| | | | | | The "frequencies" property will return or calculate the frequency values of the simulation. | ||||
* | Arrange customs errors/exceptions in a module | Aaron LI | 2016-10-03 | 1 | -4/+1 |
| | |||||
* | configs/manager.py: Add "getn()" method to get multi-level config value | Aaron LI | 2016-10-02 | 1 | -0/+25 |
| | |||||
* | configs/manager.py: Refactor "get()" method and remove "set()" | Aaron LI | 2016-10-02 | 1 | -8/+1 |
| | |||||
* | configs/manager.py: Make "validate()" method private. | Aaron LI | 2016-09-30 | 1 | -8/+8 |
| | | | | Also unify the quote style. | ||||
* | configs/manager.py: Update docstrings. | Aaron LI | 2016-09-30 | 1 | -2/+21 |
| | | | | The NumPy docstring style is used. | ||||
* | utils/logging: reset handlers before initialization/reconfiguration | Aaron LI | 2016-09-29 | 1 | -1/+7 |
| | | | | Also improve the comments. | ||||
* | configs/manager.py: Add "filemode" to the logging dict | Aaron LI | 2016-09-29 | 1 | -1/+3 |
| | |||||
* | configs: Fix ConfigError and disable interpolation | Aaron LI | 2016-09-29 | 1 | -3/+9 |
| | | | | | | Since we do not use string interpolation in configs, so disable this feature, otherwise `MissingInterpolationOption` error happens due to the "logging" configs which contains string formats. | ||||
* | configs/manager.py: Add property "logging" | Aaron LI | 2016-09-29 | 1 | -2/+28 |
| | | | | | | | This "logging" property get and perpare the configurations for `logging.basicConfig()` use. Needs testing. | ||||
* | Implement the basic ConfigManger() | Aaron LI | 2016-09-27 | 1 | -0/+74 |
This is very basic at the moment, and needs many improvements. Thanks: https://github.com/pazz/alot TODO: Add config specifications with default values |