@@ -43,7 +43,7 @@ def _dens_setup(sources: Union[GalaxyCluster, ClusterSample], abund_table: str,
43
43
conv_temp : Union [Quantity , Dict [str , Quantity ]] = None ,
44
44
conv_outer_radius : Quantity = "r500" , conv_inner_radius : Union [str , Quantity ] = Quantity (0 , 'arcsec' ),
45
45
num_cores : int = NUM_CORES , stacked_spectra : bool = False , telescope : Union [str , List [str ]] = None ,
46
- xspec_timeout : Quantity = Quantity (300 , 's' )) \
46
+ timeout : Quantity = Quantity (300 , 's' )) \
47
47
-> Tuple [Union [ClusterSample , List ], Dict [str , List [Quantity ]], Union [Dict [str , str ], Dict [str , list ]],
48
48
Union [Dict [str , str ], Dict [str , list ]], List [str ]]:
49
49
"""
@@ -94,7 +94,7 @@ def _dens_setup(sources: Union[GalaxyCluster, ClusterSample], abund_table: str,
94
94
instead use individual spectra for an ObsID. The default is False.
95
95
:param int num_cores: The number of cores that the evselect call and XSPEC functions are allowed
96
96
to use.
97
- :param Quantity xspec_timeout : How long xspec should run for before timing out.
97
+ :param Quantity timeout : How long xspec should run for before timing out.
98
98
:return: The source object(s)/sample that was passed in, a dictionary of an array of the
99
99
calculated conversion factors to take the count-rate/volume to a number density of hydrogen
100
100
for each telescope, the parsed obs_id variable, and the parsed inst variable.
@@ -226,7 +226,7 @@ def _dens_setup(sources: Union[GalaxyCluster, ClusterSample], abund_table: str,
226
226
single_temp_apec (sources , conv_outer_radius , conv_inner_radius , abund_table = abund_table ,
227
227
group_spec = group_spec , min_counts = min_counts , min_sn = min_sn ,
228
228
over_sample = over_sample , num_cores = num_cores , stacked_spectra = stacked_spectra ,
229
- telescope = telescope , timeout = xspec_timeout )
229
+ telescope = telescope , timeout = timeout )
230
230
231
231
# Then we need to grab the temperatures and pass them through to the cluster conversion
232
232
# factor calculator - this may well change as I intend to let cluster_cr_conv grab
@@ -393,7 +393,7 @@ def inv_abel_fitted_model(sources: Union[GalaxyCluster, ClusterSample],
393
393
conv_inner_radius : Quantity = Quantity (0 , 'arcsec' ), inv_abel_method : str = None ,
394
394
num_cores : int = NUM_CORES , show_warn : bool = True , stacked_spectra : bool = False ,
395
395
telescope : Union [str , List [str ]] = None ,
396
- xspec_timeout : Quantity = Quantity (300 , "s" )) -> Dict [str , List [Union [GasDensity3D , None ]]]:
396
+ timeout : Quantity = Quantity (300 , "s" )) -> Dict [str , List [Union [GasDensity3D , None ]]]:
397
397
"""
398
398
A count-rate-map-based galaxy cluster gas density calculation method where a surface brightness profile
399
399
is fit with a model and an inverse abel transform is used to infer the 3D count-rate/volume
@@ -483,7 +483,7 @@ def inv_abel_fitted_model(sources: Union[GalaxyCluster, ClusterSample],
483
483
instead use individual spectra for an ObsID. The default is False.
484
484
:param str/List[str] telescope: Telescope(s) to produce density profiles from. Default is None, in which
485
485
case density profiles will be produced from all telescopes associated with a source.
486
- :parma Quantity xspec_timeout : Timeout argument for xspec functions.
486
+ :parma Quantity timeout : Timeout argument for xspec functions.
487
487
:return: A dictionary of 3D gas density profile lists measured by this function - the keys are telescope
488
488
names. The values are lists with one entry per source, even if the source in question doesn't have
489
489
that telescope associated or the profile construction process failed.
@@ -494,7 +494,7 @@ def inv_abel_fitted_model(sources: Union[GalaxyCluster, ClusterSample],
494
494
sources , conv_factors , obs_id , inst , telescope = _dens_setup (sources , abund_table , lo_en , hi_en , group_spec ,
495
495
min_counts , min_sn , over_sample , obs_id , inst ,
496
496
conv_temp , conv_outer_radius , conv_inner_radius ,
497
- num_cores , stacked_spectra , telescope , xspec_timeout )
497
+ num_cores , stacked_spectra , telescope , timeout )
498
498
499
499
# Calls the handy spectrum region setup function to make a predictable set of outer radius
500
500
# values
@@ -647,7 +647,7 @@ def inv_abel_data(sources: Union[GalaxyCluster, ClusterSample], outer_radius: Un
647
647
conv_outer_radius : Quantity = "r500" , conv_inner_radius : Quantity = Quantity (0 , 'arcsec' ),
648
648
num_cores : int = NUM_CORES , stacked_spectra : bool = False ,
649
649
telescope : Union [str , List [str ]] = None ,
650
- xspec_timeout : Quantity = Quantity (300 , "s" ) ) -> Dict [str , List [Union [GasDensity3D , None ]]]:
650
+ timeout : Quantity = Quantity (300 , "s" ) ) -> Dict [str , List [Union [GasDensity3D , None ]]]:
651
651
"""
652
652
A count-rate-map-based galaxy cluster gas density calculation method where a surface brightness profile inverse
653
653
abel transformed, thus inferring the 3D count-rate/volume profile. Then a conversion factor calculated from
@@ -753,7 +753,7 @@ def inv_abel_data(sources: Union[GalaxyCluster, ClusterSample], outer_radius: Un
753
753
instead use individual spectra for an ObsID. The default is False.
754
754
:param str/List[str] telescope: Telescope(s) to produce density profiles from. Default is None, in which
755
755
case density profiles will be produced from all telescopes associated with a source.
756
- :parma Quantity xspec_timeout : Timeout argument for xspec functions.
756
+ :parma Quantity timeout : Timeout argument for xspec functions.
757
757
:return: A dictionary of 3D gas density profile lists measured by this function - the keys are telescope
758
758
names. The values are lists with one entry per source, even if the source in question doesn't have
759
759
that telescope associated or the profile construction process failed.
@@ -764,7 +764,7 @@ def inv_abel_data(sources: Union[GalaxyCluster, ClusterSample], outer_radius: Un
764
764
sources , conv_factors , obs_id , inst , telescope = _dens_setup (sources , abund_table , lo_en , hi_en , group_spec ,
765
765
min_counts , min_sn , over_sample , obs_id , inst ,
766
766
conv_temp , conv_outer_radius , conv_inner_radius ,
767
- num_cores , stacked_spectra , telescope , xspec_timeout )
767
+ num_cores , stacked_spectra , telescope , timeout )
768
768
769
769
# Calls the handy spectrum region setup function to make a predictable set of outer radius values
770
770
out_rads = region_setup (sources , outer_radius , Quantity (0 , 'arcsec' ), False , '' )[- 1 ]
0 commit comments