ler 0.3.7__py3-none-any.whl → 0.3.9__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 +1 -1
- ler/gw_source_population/cbc_source_parameter_distribution.py +74 -31
- ler/gw_source_population/cbc_source_redshift_distribution.py +37 -28
- ler/gw_source_population/jit_functions.py +1 -1
- ler/image_properties/image_properties.py +46 -23
- ler/image_properties/multiprocessing_routine.py +26 -11
- ler/lens_galaxy_population/jit_functions.py +1 -0
- ler/lens_galaxy_population/lens_galaxy_parameter_distribution.py +23 -23
- ler/lens_galaxy_population/optical_depth.py +20 -18
- ler/rates/gwrates.py +593 -205
- ler/rates/ler copy.py +2097 -0
- ler/rates/ler.py +1068 -577
- ler/utils/plots.py +266 -223
- ler/utils/utils.py +44 -10
- {ler-0.3.7.dist-info → ler-0.3.9.dist-info}/METADATA +2 -2
- ler-0.3.9.dist-info/RECORD +25 -0
- {ler-0.3.7.dist-info → ler-0.3.9.dist-info}/WHEEL +1 -1
- ler-0.3.7.dist-info/RECORD +0 -24
- {ler-0.3.7.dist-info → ler-0.3.9.dist-info}/LICENSE +0 -0
- {ler-0.3.7.dist-info → ler-0.3.9.dist-info}/top_level.txt +0 -0
|
@@ -176,7 +176,7 @@ class OpticalDepth():
|
|
|
176
176
|
if sampler_priors:
|
|
177
177
|
self.sampler_priors.update(sampler_priors)
|
|
178
178
|
self.sampler_priors_params = dict(
|
|
179
|
-
velocity_dispersion=dict(vd_min=0., vd_max=
|
|
179
|
+
velocity_dispersion=dict(vd_min=0., vd_max=350.),
|
|
180
180
|
axis_ratio=dict(q_min=0.2, q_max=1.),
|
|
181
181
|
)
|
|
182
182
|
if sampler_priors_params:
|
|
@@ -186,25 +186,25 @@ class OpticalDepth():
|
|
|
186
186
|
|
|
187
187
|
self.directory = directory
|
|
188
188
|
self.c_n_i = dict(
|
|
189
|
-
velocity_dispersion=dict(create_new=False, resolution=
|
|
190
|
-
axis_ratio=dict(create_new=False, resolution=
|
|
191
|
-
optical_depth=dict(create_new=False, resolution=
|
|
192
|
-
z_to_Dc=dict(create_new=False, resolution=
|
|
193
|
-
Dc_to_z=dict(create_new=False, resolution=
|
|
194
|
-
angular_diameter_distance=dict(create_new=False, resolution=
|
|
195
|
-
differential_comoving_volume=dict(create_new=False, resolution=
|
|
189
|
+
velocity_dispersion=dict(create_new=False, resolution=1000),
|
|
190
|
+
axis_ratio=dict(create_new=False, resolution=1000),
|
|
191
|
+
optical_depth=dict(create_new=False, resolution=200),
|
|
192
|
+
z_to_Dc=dict(create_new=False, resolution=1000),
|
|
193
|
+
Dc_to_z=dict(create_new=False, resolution=1000),
|
|
194
|
+
angular_diameter_distance=dict(create_new=False, resolution=1000),
|
|
195
|
+
differential_comoving_volume=dict(create_new=False, resolution=1000),
|
|
196
196
|
)
|
|
197
197
|
if isinstance(create_new_interpolator, dict):
|
|
198
198
|
self.c_n_i.update(create_new_interpolator)
|
|
199
199
|
elif create_new_interpolator is True:
|
|
200
200
|
self.c_n_i = dict(
|
|
201
|
-
velocity_dispersion=dict(create_new=True, resolution=
|
|
202
|
-
axis_ratio=dict(create_new=True, resolution=
|
|
203
|
-
optical_depth=dict(create_new=True, resolution=
|
|
204
|
-
z_to_Dc=dict(create_new=True, resolution=
|
|
205
|
-
Dc_to_z=dict(create_new=True, resolution=
|
|
206
|
-
angular_diameter_distance=dict(create_new=True, resolution=
|
|
207
|
-
differential_comoving_volume=dict(create_new=True, resolution=
|
|
201
|
+
velocity_dispersion=dict(create_new=True, resolution=1000),
|
|
202
|
+
axis_ratio=dict(create_new=True, resolution=1000),
|
|
203
|
+
optical_depth=dict(create_new=True, resolution=200),
|
|
204
|
+
z_to_Dc=dict(create_new=True, resolution=1000),
|
|
205
|
+
Dc_to_z=dict(create_new=True, resolution=1000),
|
|
206
|
+
angular_diameter_distance=dict(create_new=True, resolution=1000),
|
|
207
|
+
differential_comoving_volume=dict(create_new=True, resolution=1000),
|
|
208
208
|
)
|
|
209
209
|
|
|
210
210
|
vd_name = self.sampler_priors["velocity_dispersion"] # velocity dispersion sampler name
|
|
@@ -237,8 +237,9 @@ class OpticalDepth():
|
|
|
237
237
|
self.vd_min = self.sampler_priors_params['velocity_dispersion']['vd_min']
|
|
238
238
|
self.vd_max = self.sampler_priors_params['velocity_dispersion']['vd_max']
|
|
239
239
|
except:
|
|
240
|
-
self.vd_min =
|
|
241
|
-
self.vd_max =
|
|
240
|
+
self.vd_min = 10.
|
|
241
|
+
self.vd_max = 350.
|
|
242
|
+
self.sampler_priors_params['velocity_dispersion']=dict(vd_min=self.vd_min, vd_max=self.vd_max)
|
|
242
243
|
|
|
243
244
|
# generating inverse cdf interpolator for velocity dispersion
|
|
244
245
|
param_dict_given_ = dict(z_min=self.z_min, z_max=self.z_max, vd_min=self.vd_min, vd_max=self.vd_max, cosmology=self.cosmo, name=vd_name, resolution=self.c_n_i["velocity_dispersion"]["resolution"])
|
|
@@ -966,7 +967,8 @@ class OpticalDepth():
|
|
|
966
967
|
Function to list all available axis ratio sampler.
|
|
967
968
|
"""
|
|
968
969
|
self._available_axis_ratio_list_and_its_params = dict(
|
|
969
|
-
axis_ratio_rayleigh=
|
|
970
|
+
axis_ratio_rayleigh=dict(q_min=0.2, q_max=1.0),
|
|
971
|
+
axis_ratio_padilla_strauss=dict(q_min=0.2, q_max=1.0),
|
|
970
972
|
axis_ratio_SIS=None,
|
|
971
973
|
)
|
|
972
974
|
|