aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* utils/transform.py: Update comment and minor cleanupsAaron LI2017-08-121-5/+3
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Inherent cluster catalog info to halos dataAaron LI2017-08-121-4/+9
| | | | | | Also rename "frequencies" to "frequency" Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add missing columns to DataFrame conversionAaron LI2017-08-121-2/+2
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Implement calc_{power,flux,brightness_mean} in helperAaron LI2017-08-112-40/+116
| | | | | | Help development & debug ... Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo: "volume" use unit "kpc^3" instead of "cm^3"Aaron LI2017-08-112-4/+7
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Calculate and cache more halo dataAaron LI2017-08-061-4/+9
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Fix a bug in clusters/halo.py; Add a comment to utils/io/_create_dir()Aaron LI2017-08-062-1/+5
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Update against "Fnu_to_Tb_fast()" unit changesAaron LI2017-08-037-30/+38
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/convert.py: omega unit default to [arcsec^2], other improvementsAaron LI2017-08-031-10/+11
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/convert.py: Improve various comments/descriptionsAaron LI2017-08-031-23/+33
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/convert.py: Improve unit check and conversionAaron LI2017-08-031-2/+2
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Convert halos data to be a DataFrame and dumpAaron LI2017-08-031-0/+19
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils: Add ds.py with function "dictlist_to_dataframe()"Aaron LI2017-08-031-0/+82
| | | | | | | This function convert a list of dictionaries created by e.g., GalaxyClusters._simulate_halos() to be a Pandas DataFrame. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/emission.py: Make "F()" be class method, fixing memory hole!Aaron LI2017-08-011-22/+35
| | | | | | | | | | | For unknown reason! Each instance of "SynchrotronEmission" will cost ~5 MiB memory when interpolating the kernel function cached as "self._F_interp", which won't be collected/freed by GC, for UNKNOWN reason! Therefore, make the method "F()" be class-wide, to avoid the memory hole! Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/io.py: Fix issue in "_create_dir()" with empty directory pathAaron LI2017-08-011-1/+3
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Improve logging messagesAaron LI2017-08-013-5/+14
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils: Add profile.py to diagnose memory usageAaron LI2017-08-011-0/+97
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/emission.py: Fix bug in "F()"Aaron LI2017-08-011-13/+14
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* configs: Clean up importsAaron LI2017-08-012-3/+2
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* configs: Default logging to INFO; remove a obsolete config optionAaron LI2017-08-012-6/+1
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Add config "halos_dumpfile" and dump simulate halos dataAaron LI2017-08-012-1/+12
|
* utils/io.py: Add functions "pickle_dump()" and "pickle_load()"Aaron LI2017-08-011-0/+31
|
* utils/io.py: Split out "_create_dir()" and "_check_existence()"Aaron LI2017-08-011-12/+31
|
* clusters/halo.py: Finished brief simulation descriptionAaron LI2017-08-011-3/+13
|
* clusters: Fix several small issues on wrong variable namesAaron LI2017-07-313-7/+8
| | | | | | Also update logging message for RadioHalo a bit. Signed-off-by: Aaron LI <aly@aaronly.me>
* Fix several small issues; Also update PSFormalism a bitAaron LI2017-07-312-5/+11
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* docs: Add example NumPy document fileAaron LI2017-07-311-0/+323
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* docs: Add sample Makefile and conf.pyAaron LI2017-07-312-0/+395
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Use PSFormalism to simulate cluster catalogAaron LI2017-07-311-13/+11
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Add psformalism.py to simulate cluster catalogAaron LI2017-07-312-2/+241
| | | | | | Also updated configuration options. Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/cosmology.py: Add "dVc()": differential comoving volumeAaron LI2017-07-311-0/+8
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils: Add interpolate.py with "bilinear()" functionAaron LI2017-07-311-0/+42
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* cosmology: Avoid the circular importing issueAaron LI2017-07-313-8/+2
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Add the new module `fg21sim.share` missing from the last commit!Aaron LI2017-07-311-0/+32
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Add `fg21sim.share` module to hold globally shared "CONFIGS" & "COSMO"Aaron LI2017-07-3117-23/+16
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add method "_simulate_halos()"Aaron LI2017-07-311-0/+43
| | | | | | | This method simulates the radio halo properties for each cluster with a recent major merger. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Add description for "time_crossing" propertyAaron LI2017-07-311-0/+6
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Update references a bitAaron LI2017-07-312-38/+34
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* cluster/halo.py: Add method "calc_brightness_mean()"Aaron LI2017-07-301-0/+48
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Add property "angular_radius" (unit: [arcsec])Aaron LI2017-07-302-0/+12
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/emission.py: Remove methods and clean up parametersAaron LI2017-07-291-78/+2
| | | | | | | | * Methods "power()", "flux()" already moved to "halo.py"; * Method "brightness()" will also be moved over there; * Clean up thus unused parameters "z" and "radius", as well as imports. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Add methods "calc_power()" and "calc_flux()"Aaron LI2017-07-291-0/+50
| | | | | | | Calculate the synchrotron power (a.k.a. specific luminosity) and flux density from the emissivity for the halo. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Add method "calc_emissivity()"Aaron LI2017-07-291-6/+37
| | | | | | | This method invokes ``SynchrotronEmission`` to calculate the synchrotron emissivity at specified frequencies for the derived electron spectrum. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Add property "volume" (unit: [cm^3])Aaron LI2017-07-291-0/+9
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/units.py: Add several units conversionsAaron LI2017-07-291-0/+4
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/emission.py: support calc emissivity at multiple frequenciesAaron LI2017-07-291-17/+27
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/emission.py: Add property "B_gauss"Aaron LI2017-07-291-7/+11
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* galactic/freefree: Add "dust_fraction" and "halpha_abs_th" configsAaron LI2017-07-292-10/+18
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* galactic/freefree.py: Add method "_calc_halpha_to_freefree()"Aaron LI2017-07-291-14/+24
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* galactic/freefree.py: Some cleanupsAaron LI2017-07-291-33/+33
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>