ler 0.4.2__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.

Files changed (35) hide show
  1. ler/__init__.py +26 -26
  2. ler/gw_source_population/__init__.py +1 -0
  3. ler/gw_source_population/cbc_source_parameter_distribution.py +1073 -815
  4. ler/gw_source_population/cbc_source_redshift_distribution.py +618 -294
  5. ler/gw_source_population/jit_functions.py +484 -9
  6. ler/gw_source_population/sfr_with_time_delay.py +107 -0
  7. ler/image_properties/image_properties.py +41 -12
  8. ler/image_properties/multiprocessing_routine.py +5 -209
  9. ler/lens_galaxy_population/__init__.py +2 -0
  10. ler/lens_galaxy_population/epl_shear_cross_section.py +0 -0
  11. ler/lens_galaxy_population/jit_functions.py +101 -9
  12. ler/lens_galaxy_population/lens_galaxy_parameter_distribution.py +813 -881
  13. ler/lens_galaxy_population/lens_param_data/density_profile_slope_sl.txt +5000 -0
  14. ler/lens_galaxy_population/lens_param_data/external_shear_sl.txt +2 -0
  15. ler/lens_galaxy_population/lens_param_data/number_density_zl_zs.txt +48 -0
  16. ler/lens_galaxy_population/lens_param_data/optical_depth_epl_shear_vd_ewoud.txt +48 -0
  17. ler/lens_galaxy_population/mp copy.py +554 -0
  18. ler/lens_galaxy_population/mp.py +736 -138
  19. ler/lens_galaxy_population/optical_depth.py +2248 -616
  20. ler/rates/__init__.py +1 -2
  21. ler/rates/gwrates.py +126 -72
  22. ler/rates/ler.py +218 -111
  23. ler/utils/__init__.py +2 -0
  24. ler/utils/function_interpolation.py +322 -0
  25. ler/utils/gwsnr_training_data_generator.py +233 -0
  26. ler/utils/plots.py +1 -1
  27. ler/utils/test.py +1078 -0
  28. ler/utils/utils.py +492 -125
  29. {ler-0.4.2.dist-info → ler-0.4.3.dist-info}/METADATA +30 -17
  30. ler-0.4.3.dist-info/RECORD +34 -0
  31. {ler-0.4.2.dist-info → ler-0.4.3.dist-info}/WHEEL +1 -1
  32. ler/rates/ler copy.py +0 -2097
  33. ler-0.4.2.dist-info/RECORD +0 -25
  34. {ler-0.4.2.dist-info → ler-0.4.3.dist-info/licenses}/LICENSE +0 -0
  35. {ler-0.4.2.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
- 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
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.2"
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
 
@@ -1,3 +1,4 @@
1
1
  from .cbc_source_redshift_distribution import *
2
2
  from .cbc_source_parameter_distribution import *
3
3
  from .jit_functions import *
4
+ from .sfr_with_time_delay import *