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).
While implementing support for using
jplephem
withinastropy
, @eteq commented that it would be good to closeSPK
files if they are no longer in use. Obviously, we can dospk.daf.file.close()
, but perhaps it would be more elegant to provide aclose
method to match theopen
class method, so that one the release of the file remains an implementation detail that could be changed later (if ever necessary).