Skip to content

Commit

Permalink
BUGFIX: provide eps0 in radians, not degrees.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcvdSluys committed Feb 21, 2022
1 parent 95feec1 commit 5cc2454
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions astroconst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@
import numpy as __np
from . import aa # Submodule with constants from the Astronomical Almanac

# Make some often-used AA constants more readily available:
au = aa.au; """Astronomical unit"""
c = aa.c; """Speed of light in vacuo"""
eps0 = aa.epsilon_j2000; """Obliquity of the ecliptic in J2000.0"""
g = aa.g; """Newton's gravitational constant"""



# Angles:
# Mathematical constans:
pi = __np.pi; """π"""
Expand All @@ -62,6 +54,14 @@



# Make some often-used AA constants more readily available:
au = aa.au; """Astronomical unit"""
c = aa.c; """Speed of light in vacuo"""
eps0 = aa.epsilon_j2000*d2r; """Obliquity of the ecliptic in J2000.0, degrees -> radians"""
g = aa.g; """Newton's gravitational constant"""



# Calendar/time:
jd1820 = 2385801; """JD in 1820 (when ΔT=0)"""
jd1875 = 2405890; """JD at J1875.0 (when constellation boundaries were defined)"""
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
numpy==1.21.4
numpy==1.22.2
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


# Package version:
version='0.0.2'
version='0.0.3'

# Get long description from README.md:
with open('README.md', 'r') as fh:
Expand Down

0 comments on commit 5cc2454

Please sign in to comment.