Skip to content
Snippets Groups Projects
Commit 2149448c authored by David Keitel's avatar David Keitel
Browse files

BaseSearchClass.set_ephemeris_files(): if given custom files, actually save them

parent 62dffe7a
No related branches found
No related tags found
1 merge request!25ephemerides handling fixes
...@@ -345,7 +345,8 @@ class BaseSearchClass(object): ...@@ -345,7 +345,8 @@ class BaseSearchClass(object):
Paths of the two files containing positions of Earth and Sun, Paths of the two files containing positions of Earth and Sun,
respectively at evenly spaced times, as passed to CreateFstatInput 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): ...@@ -353,8 +354,12 @@ class BaseSearchClass(object):
if earth_ephem is None: if earth_ephem is None:
self.earth_ephem = earth_ephem_default self.earth_ephem = earth_ephem_default
else:
self.earth_ephem = earth_ephem
if sun_ephem is None: if sun_ephem is None:
self.sun_ephem = sun_ephem_default self.sun_ephem = sun_ephem_default
else:
self.sun_ephem = sun_ephem
class ComputeFstat(BaseSearchClass): class ComputeFstat(BaseSearchClass):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment