ler 0.4.2__tar.gz → 0.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ler might be problematic. Click here for more details.
- {ler-0.4.2 → ler-0.4.3}/PKG-INFO +30 -3
- {ler-0.4.2 → ler-0.4.3}/README.md +1 -1
- ler-0.4.3/ler/__init__.py +68 -0
- {ler-0.4.2 → ler-0.4.3}/ler/gw_source_population/__init__.py +1 -0
- {ler-0.4.2 → ler-0.4.3}/ler/gw_source_population/cbc_source_parameter_distribution.py +1073 -815
- ler-0.4.3/ler/gw_source_population/cbc_source_redshift_distribution.py +1009 -0
- ler-0.4.3/ler/gw_source_population/jit_functions.py +772 -0
- ler-0.4.3/ler/gw_source_population/sfr_with_time_delay.py +107 -0
- {ler-0.4.2 → ler-0.4.3}/ler/image_properties/image_properties.py +41 -12
- {ler-0.4.2 → ler-0.4.3}/ler/image_properties/multiprocessing_routine.py +5 -209
- {ler-0.4.2 → ler-0.4.3}/ler/lens_galaxy_population/__init__.py +2 -0
- ler-0.4.3/ler/lens_galaxy_population/epl_shear_cross_section.py +0 -0
- {ler-0.4.2 → ler-0.4.3}/ler/lens_galaxy_population/jit_functions.py +101 -9
- ler-0.4.3/ler/lens_galaxy_population/lens_galaxy_parameter_distribution.py +1117 -0
- ler-0.4.3/ler/lens_galaxy_population/lens_param_data/density_profile_slope_sl.txt +5000 -0
- ler-0.4.3/ler/lens_galaxy_population/lens_param_data/external_shear_sl.txt +2 -0
- ler-0.4.3/ler/lens_galaxy_population/lens_param_data/number_density_zl_zs.txt +48 -0
- ler-0.4.3/ler/lens_galaxy_population/lens_param_data/optical_depth_epl_shear_vd_ewoud.txt +48 -0
- ler-0.4.3/ler/lens_galaxy_population/mp copy.py +554 -0
- ler-0.4.3/ler/lens_galaxy_population/mp.py +768 -0
- ler-0.4.3/ler/lens_galaxy_population/optical_depth.py +2627 -0
- ler-0.4.3/ler/rates/__init__.py +2 -0
- {ler-0.4.2 → ler-0.4.3}/ler/rates/gwrates.py +126 -72
- {ler-0.4.2 → ler-0.4.3}/ler/rates/ler.py +218 -111
- ler-0.4.3/ler/utils/__init__.py +4 -0
- ler-0.4.3/ler/utils/function_interpolation.py +322 -0
- ler-0.4.3/ler/utils/gwsnr_training_data_generator.py +233 -0
- {ler-0.4.2 → ler-0.4.3}/ler/utils/plots.py +1 -1
- ler-0.4.3/ler/utils/utils.py +1445 -0
- {ler-0.4.2 → ler-0.4.3}/ler.egg-info/PKG-INFO +30 -3
- {ler-0.4.2 → ler-0.4.3}/ler.egg-info/SOURCES.txt +10 -0
- {ler-0.4.2 → ler-0.4.3}/ler.egg-info/requires.txt +8 -5
- {ler-0.4.2 → ler-0.4.3}/setup.py +14 -6
- ler-0.4.2/ler/__init__.py +0 -68
- ler-0.4.2/ler/gw_source_population/cbc_source_redshift_distribution.py +0 -685
- ler-0.4.2/ler/gw_source_population/jit_functions.py +0 -297
- ler-0.4.2/ler/lens_galaxy_population/lens_galaxy_parameter_distribution.py +0 -1185
- ler-0.4.2/ler/lens_galaxy_population/mp.py +0 -170
- ler-0.4.2/ler/lens_galaxy_population/optical_depth.py +0 -995
- ler-0.4.2/ler/rates/__init__.py +0 -3
- ler-0.4.2/ler/utils/__init__.py +0 -2
- {ler-0.4.2 → ler-0.4.3}/LICENSE +0 -0
- {ler-0.4.2 → ler-0.4.3}/ler/image_properties/__init__.py +0 -0
- /ler-0.4.2/ler/utils/utils.py → /ler-0.4.3/ler/utils/test.py +0 -0
- {ler-0.4.2 → ler-0.4.3}/ler.egg-info/dependency_links.txt +0 -0
- {ler-0.4.2 → ler-0.4.3}/ler.egg-info/top_level.txt +0 -0
- {ler-0.4.2 → ler-0.4.3}/setup.cfg +0 -0
{ler-0.4.2 → ler-0.4.3}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: ler
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Summary: LVK (LIGO-Virgo-KAGRA collaboration) Event (compact-binary mergers) Rate calculator and simulator
|
|
5
5
|
Home-page: https://github.com/hemantaph/ler
|
|
6
6
|
Author: Hemantakumar
|
|
@@ -9,6 +9,33 @@ License: MIT
|
|
|
9
9
|
Requires-Python: >=3.10
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
|
+
Requires-Dist: setuptools>=65.5.0
|
|
13
|
+
Requires-Dist: matplotlib>=3.4.2
|
|
14
|
+
Requires-Dist: pycbc>=2.0.4
|
|
15
|
+
Requires-Dist: numpy<=1.26.4
|
|
16
|
+
Requires-Dist: numba>=0.60.0
|
|
17
|
+
Requires-Dist: bilby>=1.0.2
|
|
18
|
+
Requires-Dist: gwpy>=3.0.12
|
|
19
|
+
Requires-Dist: lalsuite>=7.26.1
|
|
20
|
+
Requires-Dist: gwsnr>=0.3.8
|
|
21
|
+
Requires-Dist: lenstronomy>=1.10.4
|
|
22
|
+
Requires-Dist: astropy>=5.1
|
|
23
|
+
Requires-Dist: tqdm>=4.64.1
|
|
24
|
+
Requires-Dist: pointpats>=2.3
|
|
25
|
+
Requires-Dist: shapely>=2.0.1
|
|
26
|
+
Requires-Dist: lenstronomy
|
|
27
|
+
Requires-Dist: pointpats
|
|
28
|
+
Requires-Dist: shapely
|
|
29
|
+
Dynamic: author
|
|
30
|
+
Dynamic: author-email
|
|
31
|
+
Dynamic: description
|
|
32
|
+
Dynamic: description-content-type
|
|
33
|
+
Dynamic: home-page
|
|
34
|
+
Dynamic: license
|
|
35
|
+
Dynamic: license-file
|
|
36
|
+
Dynamic: requires-dist
|
|
37
|
+
Dynamic: requires-python
|
|
38
|
+
Dynamic: summary
|
|
12
39
|
|
|
13
40
|
# LeR
|
|
14
41
|
[](https://zenodo.org/badge/latestdoi/626733473) [](https://badge.fury.io/py/ler) [](https://ler.readthedocs.io/en/latest/)
|
|
@@ -26,7 +53,7 @@ pip install ler
|
|
|
26
53
|
## About
|
|
27
54
|
|
|
28
55
|
<p align="center">
|
|
29
|
-
<img src="sl.png" alt="Your Logo" width="100%">
|
|
56
|
+
<img src="docs/_static/sl.png" alt="Your Logo" width="100%">
|
|
30
57
|
</p>
|
|
31
58
|
|
|
32
59
|
LeR is a Python package designed for the statistical simulation and forecasting of gravitational wave (GW) events and their rates. It is tailored to support both GW population study groups and GW lensing research groups by providing a comprehensive suite of tools for GW event analysis. The package is organized into the following main components:
|
|
@@ -14,7 +14,7 @@ pip install ler
|
|
|
14
14
|
## About
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
17
|
-
<img src="sl.png" alt="Your Logo" width="100%">
|
|
17
|
+
<img src="docs/_static/sl.png" alt="Your Logo" width="100%">
|
|
18
18
|
</p>
|
|
19
19
|
|
|
20
20
|
LeR is a Python package designed for the statistical simulation and forecasting of gravitational wave (GW) events and their rates. It is tailored to support both GW population study groups and GW lensing research groups by providing a comprehensive suite of tools for GW event analysis. The package is organized into the following main components:
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""
|
|
2
|
+
LeR
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
# mypackage/cli.py
|
|
6
|
+
# import argparse
|
|
7
|
+
# import subprocess, os, sys, signal, warnings
|
|
8
|
+
|
|
9
|
+
## import pycbc
|
|
10
|
+
# import os
|
|
11
|
+
# import multiprocessing as mp
|
|
12
|
+
|
|
13
|
+
# def set_multiprocessing_start_method():
|
|
14
|
+
# if os.name == 'posix': # posix indicates the program is run on Unix/Linux/Mac
|
|
15
|
+
# print("Setting multiprocessing start method to 'fork'")
|
|
16
|
+
# try:
|
|
17
|
+
# mp.set_start_method('fork', force=True)
|
|
18
|
+
# except RuntimeError:
|
|
19
|
+
# # The start method can only be set once and must be set before any process starts
|
|
20
|
+
# pass
|
|
21
|
+
# else:
|
|
22
|
+
# print("Setting multiprocessing start method to 'spawn'")
|
|
23
|
+
# # For Windows and other operating systems, use 'spawn'
|
|
24
|
+
# try:
|
|
25
|
+
# mp.set_start_method('spawn', force=True)
|
|
26
|
+
# except RuntimeError:
|
|
27
|
+
# pass
|
|
28
|
+
|
|
29
|
+
# set_multiprocessing_start_method()
|
|
30
|
+
|
|
31
|
+
# try:
|
|
32
|
+
# mp.set_start_method('fork', force=True)
|
|
33
|
+
# except RuntimeError:
|
|
34
|
+
# pass
|
|
35
|
+
|
|
36
|
+
# if sys.platform == 'darwin':
|
|
37
|
+
# HAVE_OMP = False
|
|
38
|
+
|
|
39
|
+
# # MacosX after python3.7 switched to 'spawn', however, this does not
|
|
40
|
+
# # preserve common state information which we have relied on when using
|
|
41
|
+
# # multiprocessing based pools.
|
|
42
|
+
# import multiprocessing
|
|
43
|
+
# if multiprocessing.get_start_method(allow_none=True) is None:
|
|
44
|
+
# if hasattr(multiprocessing, 'set_start_method'):
|
|
45
|
+
# multiprocessing.set_start_method('fork')
|
|
46
|
+
# elif multiprocessing.get_start_method() != 'fork':
|
|
47
|
+
# warnings.warn("PyCBC requires the use of the 'fork' start method for multiprocessing, it is currently set to {}".format(multiprocessing.get_start_method()))
|
|
48
|
+
# else:
|
|
49
|
+
# HAVE_OMP = True
|
|
50
|
+
|
|
51
|
+
__author__ = 'hemanta_ph <hemantaphurailatpam@gmail.com>'
|
|
52
|
+
|
|
53
|
+
# The version as used in the setup.py
|
|
54
|
+
__version__ = "0.4.3"
|
|
55
|
+
|
|
56
|
+
# add __file__
|
|
57
|
+
import os
|
|
58
|
+
__file__ = os.path.abspath(__file__)
|
|
59
|
+
|
|
60
|
+
# from . import rates, gw_source_population, lens_galaxy_population, image_properties, utils
|
|
61
|
+
|
|
62
|
+
# from .rates import ler, gwrates
|
|
63
|
+
# from .gw_source_population import cbc_source_parameter_distribution, cbc_source_redshift_distribution
|
|
64
|
+
# from .lens_galaxy_population import lens_galaxy_parameter_distribution, optical_depth
|
|
65
|
+
# from .image_properties import image_properties
|
|
66
|
+
# from .utils import utils, plots
|
|
67
|
+
|
|
68
|
+
|