brandon-rhodes / python-jplephem

Python version of NASA DE4xx ephemerides, the basis for the Astronomical Alamanac
MIT License
108 stars 28 forks source link

Provide close methods? #18

Closed mhvk closed 8 years ago

mhvk commented 8 years ago

While implementing support for using jplephem within astropy, @eteq commented that it would be good to close SPK files if they are no longer in use. Obviously, we can do spk.daf.file.close(), but perhaps it would be more elegant to provide a close method to match the open class method, so that one the release of the file remains an implementation detail that could be changed later (if ever necessary).