Skip to content

Commit

Permalink
fix bug
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 ab82be2 commit 4beec3f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/gaiaunlimited/selectionfunctions/binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,8 @@ class BinarySystemsSelectionFunction(fetch_utils.DownloadMixin):
}

def __init__(self):
print("WARNING: This functionality is currently under development. Use with caution.")
#############################################################################################
try:
with open(self._get_data("dict_SL_ruwe.pkl"),'rb') as f:
SL_hpx5 = pickle.load(f)
#############################################################################################
with open(self._get_data("dict_SL_ruwe.pkl"),'rb') as f:
SL_hpx5 = pickle.load(f)
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))])
self.ruwe_threshold = np.hstack([SL_hpx5[i]['ruwe_threshold'] for i in range(hp.order2npix(5))])
Expand Down

0 comments on commit 4beec3f

Please sign in to comment.