Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyFstat
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Pep Covas Vidal
PyFstat
Commits
5d2d7f81
Commit
5d2d7f81
authored
5 years ago
by
David Keitel
Browse files
Options
Downloads
Patches
Plain Diff
change default ephemerides to look for to DE405
-consistent with current defaults in lalapps
parent
e192147c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyfstat/helper_functions.py
+7
-6
7 additions, 6 deletions
pyfstat/helper_functions.py
with
7 additions
and
6 deletions
pyfstat/helper_functions.py
+
7
−
6
View file @
5d2d7f81
...
@@ -146,15 +146,16 @@ def get_ephemeris_files():
...
@@ -146,15 +146,16 @@ def get_ephemeris_files():
earth_ephem
=
None
earth_ephem
=
None
sun_ephem
=
None
sun_ephem
=
None
elif
env_var
in
list
(
os
.
environ
.
keys
()):
elif
env_var
in
list
(
os
.
environ
.
keys
()):
earth_ephem
=
os
.
path
.
join
(
os
.
environ
[
env_var
],
"
earth00-40-DE421.dat.gz
"
)
ephem_version
=
"
DE405
"
sun_ephem
=
os
.
path
.
join
(
os
.
environ
[
env_var
],
"
sun00-40-DE421.dat.gz
"
)
earth_ephem
=
os
.
path
.
join
(
os
.
environ
[
env_var
],
"
earth00-40-{:s}.dat.gz
"
.
format
(
ephem_version
))
sun_ephem
=
os
.
path
.
join
(
os
.
environ
[
env_var
],
"
sun00-40-{:s}.dat.gz
"
.
format
(
ephem_version
))
if
not
(
os
.
path
.
isfile
(
earth_ephem
)
and
os
.
path
.
isfile
(
sun_ephem
)):
if
not
(
os
.
path
.
isfile
(
earth_ephem
)
and
os
.
path
.
isfile
(
sun_ephem
)):
earth_ephem
=
os
.
path
.
join
(
os
.
environ
[
env_var
],
"
earth00-19-
DE421
.dat.gz
"
)
earth_ephem
=
os
.
path
.
join
(
os
.
environ
[
env_var
],
"
earth00-19-
{:s}
.dat.gz
"
.
format
(
ephem_version
)
)
sun_ephem
=
os
.
path
.
join
(
os
.
environ
[
env_var
],
"
sun00-19-
DE421
.dat.gz
"
)
sun_ephem
=
os
.
path
.
join
(
os
.
environ
[
env_var
],
"
sun00-19-
{:s}
.dat.gz
"
.
format
(
ephem_version
)
)
if
not
(
os
.
path
.
isfile
(
earth_ephem
)
and
os
.
path
.
isfile
(
sun_ephem
)):
if
not
(
os
.
path
.
isfile
(
earth_ephem
)
and
os
.
path
.
isfile
(
sun_ephem
)):
logging
.
warning
(
logging
.
warning
(
"
No
[earth/sun]00-[19/40]-
DE421
ephemerides
"
"
Default
[earth/sun]00-[19/40]-
"
+
ephem_version
+
"
ephemerides
"
"
found in the
"
+
os
.
environ
[
env_var
]
+
"
directory.
"
+
please
"
not
found in the
"
+
os
.
environ
[
env_var
]
+
"
directory.
"
+
please
)
)
earth_ephem
=
None
earth_ephem
=
None
sun_ephem
=
None
sun_ephem
=
None
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment