Skip to content

Remove xfails and workarounds for datetime inputs into pygmt.info #1236

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

Merged
merged 2 commits into from
Apr 22, 2021

Conversation

weiji14
Copy link
Member

@weiji14 weiji14 commented Apr 22, 2021

Description of proposed changes

Previously in GMT 6.1.1, UNIX timestamps are returned instead of ISO datetime, and the workaround was to use coltypes=0T (i.e. -f=0T) in pygmt.info. The upstream bug has been fixed at GenericMappingTools/gmt#4241 and GenericMappingTools/gmt#4849, and is available in GMT 6.2.0rc1, so the workarounds can be removed.

Fixes #597

Reminders

  • Run make format and make check to make sure the code follows the style guide.
  • Add tests for new features or tests that would have caught the bug that you're fixing.
  • Add new public functions/methods/classes to doc/api/index.rst.
  • Write detailed docstrings for all functions/methods.
  • If adding new functionality, add an example to docstrings or tutorials.

Slash Commands

You can write slash commands (/command) in the first line of a comment to perform
specific operations. Supported slash commands are:

  • /format: automatically format and lint the code
  • /test-gmt-dev: run full tests on the latest GMT development version

weiji14 added 2 commits April 23, 2021 10:53
Upstream bug resolved with GMT 6.2.0rc1 so the expected failure (xfail) decorators can be removed now.
@weiji14 weiji14 added maintenance Boring but important stuff for the core devs upstream Bug or missing feature of upstream core GMT labels Apr 22, 2021
@weiji14 weiji14 added this to the 0.4.0 milestone Apr 22, 2021
@weiji14 weiji14 self-assigned this Apr 22, 2021
@weiji14 weiji14 merged commit 75c90e8 into master Apr 22, 2021
@weiji14 weiji14 deleted the test_info_datetime_works branch April 22, 2021 23:51
michaelgrund pushed a commit to michaelgrund/pygmt that referenced this pull request Apr 23, 2021
…nericMappingTools#1236)

* Remove xfails on pygmt.info tests with a time column

Upstream bug resolved with GMT 6.2.0rc1 so the expected failure (xfail) decorators can be removed now.

* Remove coltypes="0T" workaround since datetime inputs to pygmt.info is ok now
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
…nericMappingTools#1236)

* Remove xfails on pygmt.info tests with a time column

Upstream bug resolved with GMT 6.2.0rc1 so the expected failure (xfail) decorators can be removed now.

* Remove coltypes="0T" workaround since datetime inputs to pygmt.info is ok now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs upstream Bug or missing feature of upstream core GMT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running info on pandas.DataFrame with time column doesn't work
2 participants