From 281e13bd6cc9cc4185a279ab63ed6996b759a13e Mon Sep 17 00:00:00 2001 From: Alfred Castro Ginard Date: Tue, 21 May 2024 12:48:01 +0200 Subject: [PATCH] add data remove warning --- src/gaiaunlimited/utils.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/gaiaunlimited/utils.py b/src/gaiaunlimited/utils.py index bbd64a1..edd2656 100644 --- a/src/gaiaunlimited/utils.py +++ b/src/gaiaunlimited/utils.py @@ -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