Commit Graph

17 Commits

Author SHA1 Message Date
Nordine 3147fdbf35
fix MJD_0 value in comment (#32) 2022-02-26 14:41:50 +05:30
Antonio Valentino 559526eb86
Fix the data type for jd1 and jd2 in docstrings (#25)
jd1 and jd2 were marked as int but they could be floats, especially jd2 usually is.
2020-05-28 11:43:03 +05:30
Prasanth Nair 64a659c6ea Fixed E741 ambiguous variable name 'l' in
Ignore E722 (bare except) and E501 (line too long) in
2020-01-20 19:17:04 +05:30
Jon Dufresne cf8674a3d9 Use builtin mod operator (#23)
The Python docs recommend using the builtin mod operator (%) for

> For this reason, function fmod() is generally preferred when working
> with floats, while Python’s x % y is preferred when working with
> integers.
2020-01-19 18:30:49 +05:30
Jon Dufresne 9f5e2ab3cc Simplify: Replace ipart() builtin function int() (#20)
The function's docstring was: "Return integer part of given number."

Python has a builtin function for this: int(). From the docs:

> If x defines __int__(), int(x) returns x.__int__(). If x defines
> __trunc__(), it returns x.__trunc__(). For floating point numbers,
> this truncates towards zero.
2020-01-19 17:55:19 +05:30
Jon Dufresne 9e59961cf6 Reuse math import (#21)
Don't try to import a 2nd time, the module is already available.
2020-01-19 17:50:49 +05:30
Prasanth Nair 1e65e9be80 Update to version 1.4.1 and changes noted in CHANGELOG.txt. 2019-04-24 15:43:12 +05:30
Jon Dufresne c49e66c125 Remove unused and undocumented function fpart() (#18)
Remove fpart() from module and tests.
2019-04-24 15:31:58 +05:30
Prasanth Nair c4d4261011 Version 1.4.
Wheel support.
Test more Python versions on travis.
Add more Python versions in classifiers in
Change version number in
Add test to compare gcal2jd with astropy._erfa.cal2jd.
2018-04-14 20:06:15 +05:30
Hugo 6c6fe667c0 Update Python versions (#10)
+ Add Python 3.6.
+ Change http to https.
2018-02-05 08:50:27 +05:30
Prasanth Nair 10e977b911 New version 1.3.
1) Use setuptools instead of distutils.
   I will continue non-wheel on pypi since I am not familiar with
   wheels, and can't spend time on it if this breaks someone's
2) Made entry in changelog.
2016-09-19 10:46:27 +05:30
Prasanth Nair 8efe5b91ae Changed version to 1.2. See CHANGELOG.txt. 2015-11-11 08:34:58 +05:30
Prasanth Nair f07686ab84 Tests in
Removed tests from
Updated .gitignore
README.rst: remove link; point to LICENSE.txt.
2015-11-10 17:55:41 +05:30
Prasanth Nair f570834167 Update version info to fix issue on pypi 2015-11-09 13:30:54 +05:30
Prasanth Nair cccc2705ab Incremented version number to fix issue on pypi server. 2015-11-09 13:25:35 +05:30
Prasanth Nair b42ca54542 Note about SOFA C in module docstring. 2011-10-08 11:22:24 +05:30
Prasanth Nair cd08d8e91c Initial commit: moving Gist to full repo.
Github repos are more visible than Gists. Hence it is more likely
to get error reports and comments.

It makes it easier to submit to pypi.
2011-10-08 11:16:39 +05:30