sot / chandra_cmd_states

Interface for creation and maintenance of the Chandra commanded states database.
https://sot.github.io/cmd_states
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Default get_cmd_states.py range now includes end of available data #3

Closed jeanconn closed 12 years ago

jeanconn commented 12 years ago

If --stop is not defined, the code now puts no end limit on the cmd_states fetch. Previously the default --stop was Now, which was not idea for actual use cases.

jeanconn commented 12 years ago

I noticed that DateTime(-10) is the same as DateTime(DateTime() - 10) but didn't see the former explicitly supported in the Chandra.Time help, so I went with the latter.

taldcroft commented 12 years ago

I presume you've tested the four possibilities for (start, stop) x (explicit, implicit) and gotten the expected behavior?

jeanconn commented 12 years ago

I did, though I forgot to check to see if there were any tests already in in the project that use get_cmd_states. I also don't know if there is any code "out there" that I should check for compatibility.