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

Refactor grdtrack to use virtualfile_from_data and improve i/o to pandas.DataFrame #1189

Merged
merged 6 commits into from
May 2, 2021

Conversation

weiji14
Copy link
Member

@weiji14 weiji14 commented Apr 6, 2021

Description of proposed changes

Enables grdtrack to work with table-like inputs besides pandas.DataFrame. Also, the outfile parameter has become optional, and the output data will be loaded as a pandas.DataFrame when outfile is unset. Unit tests have been updated accordingly too.

Related to #949. Addresses #1099

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

Enables `grdtrack` to work with table-like inputs
besides pandas.DataFrame. Also, the `outfile`
parameter has become optional, and the output
data will be loaded as a pandas.DataFrame when
`outfile` is unset. Unit tests have been updated
accordingly too.
@weiji14 weiji14 added the enhancement Improving an existing feature label Apr 6, 2021
@weiji14 weiji14 mentioned this pull request Apr 6, 2021
21 tasks
@weiji14 weiji14 self-assigned this Apr 6, 2021
@weiji14 weiji14 mentioned this pull request Apr 29, 2021
3 tasks
@weiji14 weiji14 marked this pull request as ready for review April 29, 2021 03:23
@weiji14 weiji14 marked this pull request as draft April 29, 2021 03:54
@weiji14 weiji14 marked this pull request as ready for review April 29, 2021 03:54
@seisman seisman added this to the 0.4.0 milestone May 2, 2021
@weiji14 weiji14 merged commit d2cb8b9 into master May 2, 2021
@weiji14 weiji14 deleted the virtualfile_from_data/grdtrack branch May 2, 2021 22:12
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
…das.DataFrame (GenericMappingTools#1189)

Enables `grdtrack` to work with table-like inputs
besides pandas.DataFrame. Also, the `outfile`
parameter has become optional, and the output
data will be loaded as a pandas.DataFrame when
`outfile` is unset. Unit tests have been updated
accordingly too.

* State that outfile is not required anymore, and fix a lint error
* Update expected grdtrack outputs to see if the test xpasses

Co-authored-by: Dongdong Tian <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants