Closed taldcroft closed 4 years ago
With apologies, I ended up migrating the unit tests to pytest in order to get things working. So this ends up making this into a multi-issue PR.
I addressed the comments and simplified the implementation so it is much cleaner and more isolated from the original code.
Description
Allow instantiating a DateTime object from a CxoTime object, and conversely getting a CxoTime object from DateTime using
tm.cxotime
.One disappointing issue is that I discovered that CxoTime (astropy Time) is quite slow in creating scalar time objects, up to a factor of 15 slower (300 us vs. 20 us). For most applications this won't matter.
Testing
Fixes #