| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
| |
* Update checkers accordingly
|
|
|
|
| |
Also update copyright information.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
| |
The option "output/manifest" is the filename of the output manifest for
the simulation products.
|
|
|
|
|
| |
* Also update the logging messages styles for the Web UI
* Show a modal notification when the task finished.
|
| |
|
|
|
|
| |
Also expand the output file for the prefix "~" (tilde)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* Update the "logging" property in "manager.py"
* Also add "extragalactic/clusters" to "common/components"
|
|
|
|
|
| |
Replace the filter hack with a cleaner list comprehension.
Be Pythonic :)
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
Finish the "_set_configs()" function to implement the "set" action
for "_handle_configs()".
Also change the "status" keyword to "success" to be more intuitive.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
* Keep a copy of the default configurations from the specifications
* Add "dump()" method to dump the configurations (as well as the default
configurations) as plain Python dictionary
* Add new parameter "from_default" to methods "get()" and "getn()" to
allow get the config value from the default configurations
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Merge PR#3: Add new simulation component "extragalactic/pointsources", including SF, SB, RQ, FRI and FRII.
* extragalactic/pointsource: add point source simulation module
* extracgalactic/pointsource: add point source simulation module
* Add configurating spec to extragalgactic point sources.
* Modified some variables
* base.py: modified
* flux.py: modified
* fr1.py: modified
* fr2.py: modified
* pointsources.py: modified
* psparams.py: modified
* radioquiet.py: modified
* starforming.py: modified
* starbursting.py: modified
* Rewritten the comments.
* base.py: modified
* flux.py: modified
* fr1.py: modified
* fr2.py: modified
* Modified
* psparams.py: modified
* radioquiet.py: modified
* starforming.py: modified
* starbursting.py: modified
* Modified
* Modified
* Modified
* Modified
* Modified
* MOdified
* Modified
* Modified
* Modified
* Modified
* Modified
* Modified
* Modified
* Modified
* Modified
* Changed pointsource to pointsources
* Fixed some config keywords
* Fixed some config keywords
* Fixed some config keywords
* Fixed some config keywords
* Fixed some config keywords
* Fixed some config keywords
* Fixed some config keywords
* base.py:rewrited
* fr1.py:rewritten
* pointsources.py: rewritten
* radioquiet.py: rewritten
* Rewritten
* Rewritten
* base.py: modified
* fr1.py: modified
* fr2.py: modified
* radioquiet.py: modified
* starbursting.py: modified
* starforming.py: modified
* Fix conflicts
* fg21sim: fixed conflicts
* base.py: modified frequencies loading in _get_configs()
* Rewritten as forground.py
* fg21sim: fixed conflicts
* base.py: deteled loading for frequencies configurations.
* fr1.py: modified
* fr2.py: modified
* pointsources.py: modified
* radioquiet.py: modified
* starbursting.py: modified
* starforming.py: modified
* Add new methods to calculate Tb.
* Add new methods to calculate Tb.
* Add new methods to calculate Tb.
* Add new methods to calculate Tb.
* Add new methods to calculate Tb.
* Add new methods to calculate Tb.
* Deleted useless comments.
* Add pscomps to deal with multi-type PS problem.
* Add a new key.
* Fixed permission to 755.
* Rejusted PS subsections.
* Add methods to calcualte luminosity function and redshift distribution.
* Rejusted generation of samples redshift and luminosity.
* Fixed mistakes on FRII structure, added hotspots and offsets.
* Reajusted generation of samples redshift and luminosity.
* Readujsted generation of samples radii, redshifts and luminosity.
* Readujsted generation of samples radii, redshifts and luminosity.
* Fixed conflicts.
* Fixed conficts.
* Combined configurations of pointsources.
* Removed the older extragalactic configuration file.
* Fixed some mistakes.
* Fixed mistakes of drawing PS.
* Fixed mistakes of drawing PS.
* Fixed code style by pep8 checking.
* Fixed code style by pep8 checking.
* Fixed code style by pep8 checking.
* Fixed some coding style.
* Reconfigured default redshift interval.
* Reconfigured default redshift interval.
* Reconfigured default redshift interval.
* Fixed mistakes in method calc_single_Tb and changed resolution of grid.
* Fixed mistakes in method calc_single_Tb and changed resolution of grid.
* Deleted astropy.units style code to accelerate.
* Deleted astropy.units style code to accelerate.
* Deleted astropy.units style code to accelerate.
* Deleted astropy.units style code to accelerate.
* Deleted astropy.units style code to accelerate.
* Deleted astropy.units style code to accelerate.
* Deleted astropy.units style code to accelerate.
* Fixed some mistakes.
* Fixed some mistakes.
* Changed dA from au.Mpc to float64.
* Fixed some mistakes.
* Fixed some mistakes.
* Fixed some mistakes.
* Reajusted grid resolution to generate discs.
* Reajusted grid resolution to generate discs.
* Reajusted loading strategy of parameter resolution.
* Reajusted code style of configuration loading.
* Reajusted code style of configuration loading.
* Reajusted code style of configuration loading.
* Reajusted code style of configuration loading.
* Reajusted code style of configuration loading.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Support simulate the radio emission from clusters of galaxies.
Currently only the radio halos is considered, while the radio relics
need more investigations.
Also, this simulation requires a cluster catalog derived from the Hubble
Volume Project simulation.
NOTE: not tested at the moment
|
| |
|
| |
|
|
|
|
| |
All HEALPix maps used are in *RING* ordering.
|
|
|
|
|
|
|
| |
The "filter()" returns an iterator, that is consumed after the use,
therefore, the "specfiles" is used by the print under "DEBUG_FG21SIM".
Then "specfiles" is empty and thus prevents the reading of the
specification files.
|
| |
|
|
|
|
| |
Also update the general config for the new "galactic/snr" component.
|
|
|
|
| |
NOTE: very preliminary and may change at any time!
|
| |
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
| |
No functional changes.
|
|
|
|
|
|
| |
* Return None if specified config is None or not exist
* Raise ValueError if specified config is non-string
* Update comments
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|