Skip to content

Commit

Permalink
add data remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred Castro Ginard committed May 21, 2024
1 parent 4197e86 commit 281e13b
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/gaiaunlimited/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,20 +110,13 @@ class SimulateGaiaSource(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, ra, dec, period=0, eccentricity=0, initial_phase=0, epoch=2016.0):

print("WARNING: This functionality is currently under development. Use with caution.")
#############################################################################################
try:
with open(self._get_data("dict_SL_ruwe.pkl"),'rb') as f:
self.SL_hpx5 = pickle.load(f)
except:
print("WARNING: missing data file.")
raise
#############################################################################################
with open(self._get_data("dict_SL_ruwe.pkl"),'rb') as f:
self.SL_hpx5 = pickle.load(f)
self.ra = ra
self.dec = dec
self.epoch = epoch
Expand Down

0 comments on commit 281e13b

Please sign in to comment.