Skip to content

Fix bug so that x2sys_cross accepts dataframes with NaN values#1369

Merged
weiji14 merged 2 commits intomasterfrom
x2sys_cross_nan_bugfix
Jul 9, 2021
Merged

Fix bug so that x2sys_cross accepts dataframes with NaN values#1369
weiji14 merged 2 commits intomasterfrom
x2sys_cross_nan_bugfix

Conversation

@weiji14
Copy link
Member

@weiji14 weiji14 commented Jul 5, 2021

Description of proposed changes

Ensure that the NaN values properly written to the temporary track file in tempfile_from_dftrack so that GMT's x2sys_cross function can read it properly. Added a regression unit test to ensure that the pandas EmptyDataError doesn't occur again.

Fixes #1368

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

Ensure that the NaN values properly written to the temporary
track file in tempfile_from_dftrack so that GMT's `x2sys_cross`
function can read it properly. Added a regression unit test to
ensure that the pandas EmptyDataError doesn't occur again.
@weiji14 weiji14 added the bug Something isn't working label Jul 5, 2021
@weiji14 weiji14 self-assigned this Jul 5, 2021
@weiji14 weiji14 marked this pull request as ready for review July 8, 2021 02:20
@seisman seisman added this to the 0.5.0 milestone Jul 9, 2021
@weiji14 weiji14 merged commit 60a92b3 into master Jul 9, 2021
@weiji14 weiji14 deleted the x2sys_cross_nan_bugfix branch July 9, 2021 21:33
@seisman seisman modified the milestones: 0.5.0, 0.4.1 Jul 25, 2021
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
…icMappingTools#1369)

Ensure that the NaN values properly written to the temporary
track file in tempfile_from_dftrack so that GMT's `x2sys_cross`
function can read it properly. Added a regression unit test to
ensure that the pandas EmptyDataError doesn't occur again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug with x2sys_cross module not handling NaN values properly

2 participants