From 2149448cd7fa670c174bd9a45d881d29583cd7ba Mon Sep 17 00:00:00 2001 From: David Keitel <david.keitel@ligo.org> Date: Tue, 5 Nov 2019 15:11:47 +0000 Subject: [PATCH] BaseSearchClass.set_ephemeris_files(): if given custom files, actually save them --- pyfstat/core.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyfstat/core.py b/pyfstat/core.py index d2fb2a1..914022e 100755 --- a/pyfstat/core.py +++ b/pyfstat/core.py @@ -345,7 +345,8 @@ class BaseSearchClass(object): Paths of the two files containing positions of Earth and Sun, respectively at evenly spaced times, as passed to CreateFstatInput - Note: If not manually set, default values in ~/.pyfstat are used + Note: If not manually set, default values from get_ephemeris_files() + are used (looking in ~/.pyfstat or $LALPULSAR_DATADIR) """ @@ -353,8 +354,12 @@ class BaseSearchClass(object): if earth_ephem is None: self.earth_ephem = earth_ephem_default + else: + self.earth_ephem = earth_ephem if sun_ephem is None: self.sun_ephem = sun_ephem_default + else: + self.sun_ephem = sun_ephem class ComputeFstat(BaseSearchClass): -- GitLab