@@ -814,6 +814,8 @@ def onion_deproj_temp_prof(sources: Union[GalaxyCluster, ClusterSample], outer_r
814
814
psf_corr , psf_model , psf_bins , psf_algo , psf_iter , group_spec , min_counts ,
815
815
min_sn , over_sample , one_rmf , freeze_met , abund_table , temp_lo_en , temp_hi_en ,
816
816
num_cores , stacked_spectra = stacked_spectra , telescope = telescope )
817
+ print ("ann_rads" )
818
+ print (ann_rads )
817
819
elif annulus_method == "growth" :
818
820
raise NotImplementedError ("This method isn't implemented yet" )
819
821
@@ -837,9 +839,12 @@ def onion_deproj_temp_prof(sources: Union[GalaxyCluster, ClusterSample], outer_r
837
839
# The normalisation profile(s) from the fit that produced the projected temperature profile.
838
840
apec_norm_prof = src .get_apec_norm_profiles (cur_rads , group_spec , min_counts ,
839
841
min_sn , over_sample , telescope = tel )
842
+ print ("profiles here" )
843
+
840
844
except NoProductAvailableError :
841
845
# warn("{s} doesn't have a matching projected temperature profile, skipping.")
842
846
all_3d_temp_profs [tel ][src_ind ] = None
847
+ print ("no profiles!" )
843
848
continue
844
849
845
850
# We need to check if a matching 3D temperature profile has already been generated, as then we
@@ -855,10 +860,14 @@ def onion_deproj_temp_prof(sources: Union[GalaxyCluster, ClusterSample], outer_r
855
860
856
861
obs_id = 'combined'
857
862
inst = 'combined'
863
+ print (tel )
864
+ print ("len(proj_temp)" )
865
+ print (len (proj_temp ))
858
866
# There are reasons that a projected temperature profile can be considered unusable, so we must check. Also
859
867
# make sure to only use those profiles that have a minimum of 4 annuli. The len operator retrieves the number
860
868
# of radial data points a profile has
861
869
if proj_temp .usable and len (proj_temp ) > 3 :
870
+ print ("In here" )
862
871
# Also make an Emission Measure profile, used for weighting the contributions from different
863
872
# shells to annuli
864
873
em_prof = apec_norm_prof .emission_measure_profile (src .redshift , src .cosmo , abund_table ,
0 commit comments