@@ -193,18 +193,25 @@ def get_SNE(self):
193
193
@load_data_once
194
194
def get_QSO_data (self ):
195
195
data = loadtxt (os .path .join (__datapath__ , 'Quasars' ,'table3.dat' ), usecols = (3 ,4 ,5 ,6 ,7 ,9 ,10 , 11 , 12 ))
196
+ position = loadtxt (os .path .join (__datapath__ , 'Quasars' ,'table3.dat' ), usecols = (1 ,2 ))
197
+ ra = position [:,0 ]
198
+ dec = position [:,1 ]
196
199
z , lnFUV , lnFUV_err , lnFX , lnFX_err = data [:,0 ], data [:,1 ], data [:,2 ], data [:,3 ], data [:,4 ]
197
200
DM , dDM = data [:,7 ], data [:,8 ]
198
- return z , lnFUV , lnFUV_err , lnFX , lnFX_err , DM , dDM
201
+ return z , lnFUV , lnFUV_err , lnFX , lnFX_err , DM , dDM , ra , dec
199
202
200
203
def get_QSO_full (self ):
201
- z , lnFUV , lnFUV_err , lnFX , lnFX_err , _ , _ = self .get_QSO_data ()
204
+ z , lnFUV , lnFUV_err , lnFX , lnFX_err , _ , _ , _ , _ = self .get_QSO_data ()
202
205
return z , lnFUV , lnFUV_err , lnFX , lnFX_err
203
206
204
207
def get_QSO (self ):
205
- x ,_ ,_ ,_ ,_ ,y ,sigma = self .get_QSO_data ()
208
+ x ,_ ,_ ,_ ,_ ,y ,sigma , _ , _ = self .get_QSO_data ()
206
209
covar = np .diag (sigma ** 2 )
207
210
return x ,y ,covar
211
+
212
+ def get_QSO_position (self ):
213
+ _ ,_ ,_ ,_ ,_ ,_ ,_ ,ra ,dec = self .get_QSO_data ()
214
+ return ra ,dec
208
215
209
216
def get_CMB_planck_TT (self ):
210
217
# This is the Planck 2018 data special case where we want
0 commit comments