Skip to content

Time initializer enhancements - #523

Merged
eteq merged 6 commits into
astropy:masterfrom
eteq:time-init-additions
Dec 6, 2012
Merged

eteq merged 6 commits into
astropy:masterfrom
eteq:time-init-additions

Conversation

@eteq

@eteq eteq commented Dec 3, 2012

Copy link
Copy Markdown
Member

This PR makes a couple relatively minor changes to the astropy.time.Time initializer:

  1. Clarifies some of the exceptions that are raised in the initializer to be a bit easier to interpret
  2. Allows another Time object to be passed in as e.g.,
t = Time(...)
t2 = Time(t)

@taldcroft, of course, should take a look at this before it gets merged (especially in the first commit, you may want to make sure I'm understanding what those messages meant correctly).

@taldcroft

Copy link
Copy Markdown
Member

@eteq - thanks, good idea. The new exception error messages are much better. I just issued a PR on your time-init-additions branch with a different approach for initializing with a Time object.

Modified approach for time init additions
@embray

embray commented Dec 4, 2012

Copy link
Copy Markdown
Member

+1

@eteq

eteq commented Dec 4, 2012

Copy link
Copy Markdown
Member Author

Ok, I'll make sure the tests pass and if all is fine I'll go ahead and merge.

eteq added a commit that referenced this pull request Dec 6, 2012
@eteq
eteq merged commit 0a22d89 into astropy:master Dec 6, 2012
keflavich pushed a commit to keflavich/astropy that referenced this pull request Oct 9, 2013
jeffjennings pushed a commit to jeffjennings/astropy that referenced this pull request Jul 2, 2025
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.

3 participants