aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/configs
Commit message (Collapse)AuthorAgeFilesLines
* configs/manager.py: get_path() return None if value is an empty stringAaron LI2017-07-211-2/+5
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Implement "_simulate_merger()"Aaron LI2017-07-201-9/+19
| | | | | | | | | | Simulate the formation history of each cluster and identify the last/recent major merger event. Also add new configuration option "tau_merger" and tweak several configurations options. Signed-off-by: Aaron LI <aly@aaronly.me>
* configs: Update default valuesAaron LI2017-07-192-12/+8
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Small updates to comments and configuration descriptionsAaron LI2017-07-191-7/+8
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Use [arcsec] as the unit for pixel size and resolutionAaron LI2017-07-193-7/+13
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* halo.py: Add property "zgrid" as well as config option "zbinsize"Aaron LI2017-06-241-1/+3
|
* halo.py: calculate magnetic field using a scaling relationAaron LI2017-06-231-3/+7
|
* cosmology: Use default parameters from configurationsAaron LI2017-06-231-0/+2
| | | | Also add configuration option "cosmology/Omegab0".
* Use keyword "BUNIT" and unit "K"Aaron LI2017-06-131-1/+1
|
* configs: Default to disable all foregroundsAaron LI2017-06-131-4/+4
|
* configs: extragalactic/halos: change "radius_halo" to "radius"Aaron LI2017-06-011-5/+4
|
* fg21sim/clusters: Save progress on halo simulationAaron LI2017-06-011-1/+1
|
* configs: Add sigma8 to specificationsAaron LI2017-06-011-0/+2
|
* Add clusters/formation.py: Simulate cluster merging historyAaron LI2017-06-011-0/+4
|
* halo.py: Force a minimal value on acceleration coefficientAaron LI2017-06-011-1/+1
| | | | | | | To avoid the too small (or zero) values for the diffusion coefficient of the Fokker-Planck equation. Also change config "extragalactic/halo/pmax" from 1e4 to 1e5
* clusters/halo: Add missing config "buffer_np"Aaron LI2017-06-011-0/+5
|
* Add "[extragalactic/halos]" configurationsAaron LI2017-06-011-0/+44
|
* galactic/snr: Update to support the sky.pyAaron LI2017-05-221-1/+1
| | | | Also fix a typo in configs/checkers.py
* configs/checkers: Check SNR simulation resolution against pixel sizeAaron LI2017-05-211-0/+7
|
* galactic/synchrotron: Update to support sky.pyAaron LI2017-05-211-16/+32
| | | | | | | * Also update foregrounds.py to use sky.py * Minor fixes to configs/manager.py TODO: update synchrotron/add_smallscales() to also work with sky patch.
* configs : Drop "output/filetype"; only support FITSAaron LI2017-05-171-6/+3
|
* configs: New "sky" section, and remove "common" sectionAaron LI2017-05-163-37/+67
| | | | * Update checkers accordingly
* configs: Use separate section "foregrounds" to config componentsAaron LI2017-05-163-29/+61
| | | | Also update copyright information.
* galactic/snr.py: Small cleanup; Update default resolutionAaron LI2016-12-131-1/+1
|
* Minor updatesAaron LI2016-11-261-0/+5
|
* webui: configs: Some minor fixesAaron LI2016-11-221-5/+6
| | | | | | | | * configs.py/_set_configs(): Also return the original data if the input values failed the validation; * setServerConfigs(): Success callback also reset value if the input value failed pass the server-side validation; * getServerConfigs(): Return "undefined" if key does not exists.
* configs: Change default logging level to "DEBUG"Aaron LI2016-11-211-1/+1
|
* Add logging message on backing up old fileAaron LI2016-11-211-0/+1
|
* configs: Add new option "output/manifest"Aaron LI2016-11-201-0/+3
| | | | | The option "output/manifest" is the filename of the output manifest for the simulation products.
* configs: Update logging message formatAaron LI2016-11-171-1/+1
| | | | | * Also update the logging messages styles for the Web UI * Show a modal notification when the task finished.
* configs/checkers.py: Add checker "check_extragalactic_clusters()"Aaron LI2016-11-171-9/+28
|
* configs/manager.py: Make a backup when output file already existsAaron LI2016-11-161-4/+15
| | | | Also expand the output file for the prefix "~" (tilde)
* configs/manager.py: Also dump the "userconfig" valueAaron LI2016-11-161-1/+4
|
* configs/manager.py: Keep configuration file commentsAaron LI2016-11-151-6/+12
| | | | | | | | | | * Enable the "copy" mode when validating, which also copies all the comments from the configspec to the validated configurations; * Use "copy.deepcopy()" to make a deep copy of the configurations, which also copies all the comments. Since the comments are preserved, therefore they are also written together to the saved/output configuration file.
* configs/manager.py: Expand "~" when read userconfigAaron LI2016-11-151-0/+3
|
* configs/checkers.py: Check missing before validating the valuesAaron LI2016-11-111-4/+12
|
* configs/manager.py: Implement the "save()" methodAaron LI2016-11-081-6/+19
|
* configs/checkers.py: Add "check_common()"Aaron LI2016-11-071-0/+25
|
* configs: Add parameters "min" and "max" to float-type optionsAaron LI2016-11-073-10/+10
|
* configs: Change "logging/filemode" to boolean "logging/appendmode"Aaron LI2016-11-072-4/+4
| | | | | * Update the "logging" property in "manager.py" * Also add "extragalactic/clusters" to "common/components"
* configs/manager.py: Replace a filter with list comprehensionAaron LI2016-11-071-4/+1
| | | | | Replace the filter hack with a cleaner list comprehension. Be Pythonic :)
* configs/manager.py: Support flattening dumped configs (nested dict)Aaron LI2016-11-061-6/+98
| | | | | | | | * Add helper function "_flatten_dict()" to flatten a nested dictionary into an one-level dictionary, with the keys are concatenated with a separator. * Add a new parameter "flatten" to method "dump()" to allow the dumped configurations been flattened.
* webui: websocket.py: Implement "set" action for "_handle_configs()"Aaron LI2016-11-041-5/+5
| | | | | | | Finish the "_set_configs()" function to implement the "set" action for "_handle_configs()". Also change the "status" keyword to "success" to be more intuitive.
* configs/manager.py: Add method "check_all()" using "check_configs()"Aaron LI2016-11-041-0/+31
|
* Update to use renamed "check_configs()" instead of "validate_configs()"Aaron LI2016-11-041-1/+1
|
* configs: Rename "validate.py" and update "validate_configs()"Aaron LI2016-11-041-24/+36
| | | | | | | | * Rename "validate.py" to "checkers.py", to avoid the confusion with the "validate" module from "configobj"; * Rename function "validate_configs()" to "check_configs()"; * "check_configs()": add optional parameter "raise_exception"; * "check_configs()": update to return both the result and errors dict.
* configs/manager.py: Implement "setn()" to set an option valueAaron LI2016-11-041-6/+86
| | | | | | | | | | | The "setn()" method is a corresponding operation with the "getn()", which set the value of a config option to the given value. This function will be used in the Web UI to interact with the WebSocket communications. Also add the "merge()" method which simply merge the input configurations without any validation.
* configs/manager.py: getn(): remove par. "sep"; handle exceptionAaron LI2016-11-031-12/+16
| | | | | | | | * Remove the optional parameter "sep", therefore the key must be "/"-separated or a list of keys. * Add exception handling and raise "KeyError" if the input key is invalid (i.e., specifies a non-exist option). * Update comments and docstring.
* configs/manager.py: Reset before loading user config file againAaron LI2016-11-031-12/+10
| | | | | | | | Originally, the user configuration file is only allowed to load once, and prevent any future loading of user configuration file. This change allows load user configuration file again by resetting the current configurations to defaults before loading.
* configs/manager.py: Add method "reset()" and attribute "userconfig"Aaron LI2016-11-031-1/+16
|