Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | bin/fg21sim: Support new component "galactic/snr" | Aaron LI | 2016-10-17 | 1 | -1/+5 | |
| | | | | Also update the general config for the new "galactic/snr" component. | |||||
* | configs: Add new section "[galactic][snr]" for SNRs simulation | Aaron LI | 2016-10-17 | 1 | -1/+19 | |
| | | | | NOTE: very preliminary and may change at any time! | |||||
* | Force "DEBUG" log level if env variable "DEBUG_FG21SIM" set | Aaron LI | 2016-10-17 | 1 | -2/+6 | |
| | ||||||
* | configs/manager.py: Change __init__() to load user config | Aaron LI | 2016-10-17 | 1 | -9/+15 | |
| | | | | | | | | Change the "__init__()" method to load the user configurations (i.e., by invoke the "read_userconfig()" method) instead of loading extra general configurations. Method "getn()": also check the validity for the parameter "sep". | |||||
* | configs/manager.py: Various updates to docstring and comments. | Aaron LI | 2016-10-17 | 1 | -23/+44 | |
| | | | | No functional changes. | |||||
* | configs: Update get_path() to take care None and non-string value | Aaron LI | 2016-10-15 | 1 | -3/+24 | |
| | | | | | | * Return None if specified config is None or not exist * Raise ValueError if specified config is non-string * Update comments | |||||
* | configs: Switch to use `pkg_resources` to access config specs | Aaron LI | 2016-10-15 | 1 | -10/+19 | |
| | | | | | | | | | After this switch to `pkg_resources`, this package can also be installed as an EGG (a zip archive), which is more generic. References: * http://setuptools.readthedocs.io/en/latest/pkg_resources.html#basic-resource-access * http://setuptools.readthedocs.io/en/latest/setuptools.html#including-data-files | |||||
* | Fix an import; Update one pattern and a comment | Aaron LI | 2016-10-14 | 1 | -2/+2 | |
| | ||||||
* | configs: Support env variable "DEBUG_FG21SIM" for debugging | Aaron LI | 2016-10-14 | 1 | -0/+3 | |
| | | | | | | Since the logging is not avaiable at the moment, we can only use the plain `print` for debugging, if the environment variable "DEBUG_FG21SIM" is defined. | |||||
* | configs/validate.py: Check component configs only if enabled | Aaron LI | 2016-10-12 | 1 | -22/+26 | |
| | ||||||
* | configs/validate.py: Add checker for [galactic][freefree] configs | Aaron LI | 2016-10-12 | 1 | -0/+18 | |
| | ||||||
* | galactic: Add free-free component simulation | Aaron LI | 2016-10-11 | 1 | -0/+19 | |
| | | | | | | | * New class "galactic.FreeFree" to simulate free-free emission * Add new config section "galactic/freefree" NOTE: current untested | |||||
* | configs: Note that input templates should be HEALPix full-sky maps | Aaron LI | 2016-10-10 | 1 | -0/+4 | |
| | ||||||
* | configs: Change default Nside to 1024 | Aaron LI | 2016-10-10 | 1 | -2/+2 | |
| | ||||||
* | Rewrite configs/validate.py to check whole config without break | Aaron LI | 2016-10-04 | 1 | -23/+52 | |
| | ||||||
* | Remove the "common/data_dir" config item | Aaron LI | 2016-10-04 | 2 | -5/+0 | |
| | ||||||
* | Fix wrong config syntax and minor changes to ConfigManager | Aaron LI | 2016-10-04 | 2 | -12/+18 | |
| | ||||||
* | 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/validate.py: Explain these checkers differ to Validator's | Aaron LI | 2016-10-04 | 1 | -1/+7 | |
| | | | | | | NOTE: these checker functions check on the whole configuration, and have no relation to the checker functions of the `Validator` class. | |||||
* | 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. | |||||
* | Update the default config specifications. | Aaron LI | 2016-10-03 | 2 | -6/+14 | |
| | | | | | | * Add new configs for the [frequency] section * Use "None" as the default value for some configs * Fix the syntax of "cosmology/OmegaM0" | |||||
* | Add custom configuration checkers. | Aaron LI | 2016-10-03 | 2 | -0/+95 | |
| | | | | | These additional checker functions validate the required configs whether provided by the user config file, as well as against necessary contexts. | |||||
* | Arrange customs errors/exceptions in a module | Aaron LI | 2016-10-03 | 1 | -4/+1 | |
| | ||||||
* | Update general configurations and synchrotron configs | Aaron LI | 2016-10-03 | 2 | -1/+12 | |
| | ||||||
* | configs: Add sample config spec for galactic components | Aaron LI | 2016-10-02 | 1 | -0/+30 | |
| | ||||||
* | configs: Add new sections to "00-general.conf.spec" | Aaron LI | 2016-10-02 | 1 | -0/+66 | |
| | | | | | | | | These new sections added: * common * frequency * output * cosmology | |||||
* | 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: Update comments for the logging configs | Aaron LI | 2016-10-02 | 1 | -2/+6 | |
| | ||||||
* | 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: Minor adjustment to logging format | Aaron LI | 2016-09-29 | 1 | -1/+1 | |
| | ||||||
* | 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: Add default config spec for logging | Aaron LI | 2016-09-29 | 1 | -0/+34 | |
| | ||||||
* | 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 | 2 | -0/+80 | |
This is very basic at the moment, and needs many improvements. Thanks: https://github.com/pazz/alot TODO: Add config specifications with default values |