Skip to content

Commit

Permalink
added data file
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred Castro Ginard authored and Alfred Castro Ginard committed May 2, 2024
1 parent 834d3ff commit 8733939
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/gaiaunlimited/selectionfunctions/binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class BinarySystemsSelectionFunction(fetch_utils.DownloadMixin):
"""

datafiles = {
"dict_SL_ruwe.pkl": " "#"https://zenodo.org/record/8063930/files/allsky_M10_hpx7.hdf5"
"dict_SL_ruwe.pkl": "https://zenodo.org/records/11102437/files/dict_SL_ruwe.pkl"
}

def __init__(self):
Expand All @@ -41,9 +41,7 @@ def __init__(self):
try:
with open(self._get_data("dict_SL_ruwe.pkl"),'rb') as f:
SL_hpx5 = pickle.load(f)
except:
print("WARNING: missing data file.")
raise

#############################################################################################
self.ra = np.hstack([SL_hpx5[i]['ra_degrees'] for i in range(hp.order2npix(5))])
self.dec = np.hstack([SL_hpx5[i]['dec_degrees'] for i in range(hp.order2npix(5))])
Expand Down

0 comments on commit 8733939

Please sign in to comment.