Skip to content
Snippets Groups Projects
Commit 15ffe81e authored by Jason R Laura's avatar Jason R Laura
Browse files

Moved file io into a dedicated io module.

parent 9ae943e9
No related branches found
No related tags found
No related merge requests found
...@@ -155,7 +155,7 @@ def AstroDate(datespec=None): ...@@ -155,7 +155,7 @@ def AstroDate(datespec=None):
#it's Julian, one way or another #it's Julian, one way or another
return JulianDate(datespec) return JulianDate(datespec)
elif dstring[0].isalpha(): elif dstring[0].isalpha():
raise ValueError, "Invalid system specification: must be B, J, JD, or MJD" raise ValueError("Invalid system specification: must be B, J, JD, or MJD")
else: #it must be a numeric string: assume Julian else: #it must be a numeric string: assume Julian
return JulianDate(datespec) return JulianDate(datespec)
...@@ -219,7 +219,7 @@ class JulianDate: ...@@ -219,7 +219,7 @@ class JulianDate:
self.mjd=self.jd+MJD_0 self.mjd=self.jd+MJD_0
self.year=jd2jyear(self.jd) self.year=jd2jyear(self.jd)
else: else:
print "help, we are confused" print("help, we are confused")
else: #it's a number else: #it's a number
if datespec < 10000: if datespec < 10000:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment