Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export astropy units and TimeDelta within cxotime #16

Merged
merged 1 commit into from
Oct 16, 2020
Merged

Conversation

javierggt
Copy link
Contributor

@javierggt javierggt commented Sep 26, 2020

Description

This is a little thing. Basically, It just allows me to do

from cxotime import CxoTime, TimeDelta, units as u

instead of

from cxotime import CxoTime
from astropy.time import TimeDelta
from astropy import units as u

Testing

  • Passes unit tests on MacOS, linux, Windows (at least one required)
  • Functional testing

Fixes #

@taldcroft
Copy link
Member

This is fine, but since the imports are not used in cxotime.py you can just put them into __init__.py.

@javierggt
Copy link
Contributor Author

ok, changed it in init.py

@taldcroft taldcroft merged commit a11ad50 into master Oct 16, 2020
@javierggt javierggt mentioned this pull request Dec 7, 2020
@jeanconn jeanconn deleted the time-delta branch March 21, 2022 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants