aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Makefile: Add --upgrade to pip3 and add a creditAaron LI2016-10-041-1/+3
|
* Sync requirements.txt with setup.pyAaron LI2016-10-041-2/+1
|
* Rewrite configs/validate.py to check whole config without breakAaron LI2016-10-041-23/+52
|
* Remove the "common/data_dir" config itemAaron LI2016-10-043-10/+4
|
* Fix wrong config syntax and minor changes to ConfigManagerAaron LI2016-10-042-12/+18
|
* configs/manager.py: Add logging supportAaron LI2016-10-041-2/+6
|
* configs/manager.py: Add method "get_path()"Aaron LI2016-10-041-0/+21
|
* configs/manager.py: Add method "read_userconfig()"Aaron LI2016-10-041-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'sAaron LI2016-10-041-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 workingAaron LI2016-10-041-1/+1
|
* configs/manager.py: Add "frequencies" propertyAaron LI2016-10-041-0/+16
| | | | | The "frequencies" property will return or calculate the frequency values of the simulation.
* Makefile: Add variable "VENV" to control virtualenvAaron LI2016-10-031-8/+18
| | | | | | | * The variable "VENV" (default: "venv") defines the virtualenv name and can be override by the environment. * Add "devbuild" target to menu. * Remove the "--user" argument to fix the pip install problem.
* bin/{healpix2hpx,hpx2healpix}: Use argparse choicesAaron LI2016-10-032-4/+6
|
* README.rst: Minor update to the descriptionAaron LI2016-10-031-2/+2
|
* Update the default config specifications.Aaron LI2016-10-032-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 LI2016-10-032-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 moduleAaron LI2016-10-032-4/+12
|
* Update general configurations and synchrotron configsAaron LI2016-10-032-1/+12
|
* Add preliminary Galactic synchrotron simulation support.Aaron LI2016-10-031-0/+204
| | | | NOTE: untested
* utils/logging.py: Close handler before removingAaron LI2016-10-021-0/+3
|
* configs: Add sample config spec for galactic componentsAaron LI2016-10-021-0/+30
|
* configs: Add new sections to "00-general.conf.spec"Aaron LI2016-10-021-0/+66
| | | | | | | | These new sections added: * common * frequency * output * cosmology
* configs/manager.py: Add "getn()" method to get multi-level config valueAaron LI2016-10-021-0/+25
|
* configs/manager.py: Refactor "get()" method and remove "set()"Aaron LI2016-10-021-8/+1
|
* configs: Update comments for the logging configsAaron LI2016-10-021-2/+6
|
* Rewrite the Makefile to add virtualenv support.Aaron LI2016-09-302-7/+24
| | | | Thanks: http://blog.bottlepy.org/2012/07/16/virtualenv-and-makefiles.html
* configs/manager.py: Make "validate()" method private.Aaron LI2016-09-301-8/+8
| | | | Also unify the quote style.
* configs/manager.py: Update docstrings.Aaron LI2016-09-301-2/+21
| | | | The NumPy docstring style is used.
* Remove origin sample files: core.py, helpers.pyAaron LI2016-09-302-9/+0
|
* setup.py: Add missing install requirement "configobj"Aaron LI2016-09-301-0/+1
|
* setup.py: Check Python >= 3.4 before installationAaron LI2016-09-301-0/+6
|
* utils/logging.py: Save existing formatter for new handlersAaron LI2016-09-291-0/+5
| | | | | | | By saving the existing formatter and setting for the new handlers, the configured format styles are kept. Otherwise, the newly created handlers does not have a formatter, thus the default format style gets used.
* utils/logging: reset handlers before initialization/reconfigurationAaron LI2016-09-292-3/+16
| | | | Also improve the comments.
* Merge branch 'master' into loggingAaron LI2016-09-291-0/+11
|\
| * CONTRIBUTING.md: Add Python documentation guidelinesAaron LI2016-09-291-0/+11
| |
* | Add logging support for "healpix2hpx" & "hpx2healpix"Aaron LI2016-09-293-6/+64
| | | | | | | | | | | | * Argument "--log" control the log level * Argument "--logfile" to log the messages to file * Argument "--quiet" to disable logging messages to screen
* | utils/logging.py: Hack the "filemode" arg of "basicConfig()"Aaron LI2016-09-291-1/+4
| | | | | | | | | | "logging.basicConfig()" does NOT accept parameter "filemode" if the corresponding paramter "filename" NOT specified.
* | utils/healpix.py: Fix logger nameAaron LI2016-09-291-1/+1
| |
* | setup_logging(): Add parameter "level"Aaron LI2016-09-291-2/+14
| | | | | | | | Also fix a bug about parameter "stream".
* | utils/healpix.py: Add various log INFO messagesAaron LI2016-09-291-6/+22
| | | | | | | | Also fix a bug about "append_comment".
* | Add utility "setup_logging()" to setup/update loggingAaron LI2016-09-292-0/+71
| | | | | | | | | | | | This "setup_logging()" utility can setup the logging module with the given configuration dict, and can also update the logging configs by specify the additional parameters.
* | configs/manager.py: Add "filemode" to the logging dictAaron LI2016-09-291-1/+3
| |
* | configs: Minor adjustment to logging formatAaron LI2016-09-291-1/+1
| |
* | configs: Fix ConfigError and disable interpolationAaron LI2016-09-291-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 loggingAaron LI2016-09-291-0/+34
| |
* | configs/manager.py: Add property "logging"Aaron LI2016-09-291-2/+28
|/ | | | | | | This "logging" property get and perpare the configurations for `logging.basicConfig()` use. Needs testing.
* Implement the basic ConfigManger()Aaron LI2016-09-272-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
* setup.py: add classifier and requirementsAaron LI2016-09-271-2/+31
|
* Python 3.4 should be supportedAaron LI2016-09-271-1/+1
|
* Update .gitignore for Python package repoAaron LI2016-09-271-5/+13
|