ler 0.4.1__py3-none-any.whl → 0.4.3__py3-none-any.whl
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/__init__.py +26 -26
- ler/gw_source_population/__init__.py +1 -0
- ler/gw_source_population/cbc_source_parameter_distribution.py +1076 -818
- ler/gw_source_population/cbc_source_redshift_distribution.py +619 -295
- ler/gw_source_population/jit_functions.py +484 -9
- ler/gw_source_population/sfr_with_time_delay.py +107 -0
- ler/image_properties/image_properties.py +44 -13
- ler/image_properties/multiprocessing_routine.py +5 -209
- ler/lens_galaxy_population/__init__.py +2 -0
- ler/lens_galaxy_population/epl_shear_cross_section.py +0 -0
- ler/lens_galaxy_population/jit_functions.py +101 -9
- ler/lens_galaxy_population/lens_galaxy_parameter_distribution.py +817 -885
- ler/lens_galaxy_population/lens_param_data/density_profile_slope_sl.txt +5000 -0
- ler/lens_galaxy_population/lens_param_data/external_shear_sl.txt +2 -0
- ler/lens_galaxy_population/lens_param_data/number_density_zl_zs.txt +48 -0
- ler/lens_galaxy_population/lens_param_data/optical_depth_epl_shear_vd_ewoud.txt +48 -0
- ler/lens_galaxy_population/mp copy.py +554 -0
- ler/lens_galaxy_population/mp.py +736 -138
- ler/lens_galaxy_population/optical_depth.py +2248 -616
- ler/rates/__init__.py +1 -2
- ler/rates/gwrates.py +129 -75
- ler/rates/ler.py +257 -116
- ler/utils/__init__.py +2 -0
- ler/utils/function_interpolation.py +322 -0
- ler/utils/gwsnr_training_data_generator.py +233 -0
- ler/utils/plots.py +1 -1
- ler/utils/test.py +1078 -0
- ler/utils/utils.py +553 -125
- {ler-0.4.1.dist-info → ler-0.4.3.dist-info}/METADATA +22 -9
- ler-0.4.3.dist-info/RECORD +34 -0
- {ler-0.4.1.dist-info → ler-0.4.3.dist-info}/WHEEL +1 -1
- ler/rates/ler copy.py +0 -2097
- ler-0.4.1.dist-info/RECORD +0 -25
- {ler-0.4.1.dist-info → ler-0.4.3.dist-info/licenses}/LICENSE +0 -0
- {ler-0.4.1.dist-info → ler-0.4.3.dist-info}/top_level.txt +0 -0
ler/__init__.py
CHANGED
|
@@ -3,30 +3,30 @@ LeR
|
|
|
3
3
|
"""
|
|
4
4
|
|
|
5
5
|
# mypackage/cli.py
|
|
6
|
-
import argparse
|
|
6
|
+
# import argparse
|
|
7
7
|
# import subprocess, os, sys, signal, warnings
|
|
8
8
|
|
|
9
9
|
## import pycbc
|
|
10
|
-
import os
|
|
11
|
-
import multiprocessing as mp
|
|
10
|
+
# import os
|
|
11
|
+
# import multiprocessing as mp
|
|
12
12
|
|
|
13
|
-
def set_multiprocessing_start_method():
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
28
|
|
|
29
|
-
set_multiprocessing_start_method()
|
|
29
|
+
# set_multiprocessing_start_method()
|
|
30
30
|
|
|
31
31
|
# try:
|
|
32
32
|
# mp.set_start_method('fork', force=True)
|
|
@@ -51,18 +51,18 @@ set_multiprocessing_start_method()
|
|
|
51
51
|
__author__ = 'hemanta_ph <hemantaphurailatpam@gmail.com>'
|
|
52
52
|
|
|
53
53
|
# The version as used in the setup.py
|
|
54
|
-
__version__ = "0.4.
|
|
54
|
+
__version__ = "0.4.3"
|
|
55
55
|
|
|
56
56
|
# add __file__
|
|
57
57
|
import os
|
|
58
58
|
__file__ = os.path.abspath(__file__)
|
|
59
59
|
|
|
60
|
-
from . import rates, gw_source_population, lens_galaxy_population, image_properties, utils
|
|
60
|
+
# from . import rates, gw_source_population, lens_galaxy_population, image_properties, utils
|
|
61
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
|
|
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
67
|
|
|
68
68
|
|