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

Improve the documentation #8

Merged
merged 2 commits into from
Jul 15, 2020
Merged

Improve the documentation #8

merged 2 commits into from
Jul 15, 2020

Conversation

taldcroft
Copy link
Member

Description

Based on user feedback and re-review by me, the docs needed some improvement.

Testing

  • [N/A] Passes unit tests on MacOS, linux, Windows (at least one required)
  • Functional testing

Builds with sphinx with no errors and only warnings from the upstream astropy docstring.


The standard built-in Time formats that are available in CxoTime are:
- In `CxoTime` the date '2001-01-01T00:00:00' is UTC by default, while in
`DateTime` that is interpreted as TT by default. This is triggered by
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with the doc but I don't remember having a conversation about these defaults.

Is it more confusing that there's a difference between Datetime and CxoTime in this regard (what is in there) or more confusing to have different default time systems depending on the string (what you'd have if you used the DateTime logic)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the DateTime behavior (different time system depending on there being a T or not) is very confusing for anyone but Arnold and people steeped in FITS. There might be some issue reading FITS times in CXC files, so that is a concern but only if we migrate core cron processing to CxoTime, which is not likely in the near future.

@@ -53,6 +53,8 @@ The key differences between |CxoTime| and DateTime_ are:
- Conversely, starting with |CxoTime| one can add or subtract a TimeDelta_ or
any quantity with time units.

- To get the current time replace ``DateTime()`` with ``CxoTime.now()``
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@taldcroft taldcroft merged commit 0adf469 into master Jul 15, 2020
@taldcroft taldcroft deleted the better-docs branch July 15, 2020 15:37
@javierggt javierggt mentioned this pull request Dec 7, 2020
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