Skip to content

Wrap binstats - #1652

Merged
willschlitzer merged 35 commits into
mainfrom
wrap/binstats
Jun 13, 2022
Merged

willschlitzer merged 35 commits into
mainfrom
wrap/binstats

Conversation

@willschlitzer

Copy link
Copy Markdown
Contributor

This wraps the GMT module gmtbinstats.

@willschlitzer willschlitzer added the feature Brand new feature label Dec 13, 2021
@willschlitzer willschlitzer added this to the 0.6.0 milestone Dec 13, 2021
@willschlitzer willschlitzer self-assigned this Dec 13, 2021
@willschlitzer willschlitzer changed the title WIP: Wrap binstats Wrap binstats Dec 14, 2021
@willschlitzer
willschlitzer marked this pull request as ready for review January 14, 2022 00:52
@seisman seisman modified the milestones: 0.6.0, 0.7.0 Mar 13, 2022
Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/tests/test_binstats.py Resolved
Comment thread pygmt/tests/test_binstats.py Resolved
Comment thread pygmt/tests/test_binstats.py Resolved

@seisman seisman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me after fixing a typo.

@seisman seisman added the final review call This PR requires final review and approval from a second reviewer label Jun 8, 2022
@seisman

seisman commented Jun 11, 2022

Copy link
Copy Markdown
Member

@GenericMappingTools/pygmt-maintainers Hopefully someone else can give this PR a final review.

@maxrjones maxrjones left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great work, @willschlitzer!

The only important comment here is to include @capitals.gmt in the download_test_data function since that's used for caching the files for the CI.

I agree with #1652 (comment) that the output to file option can be added later since it's more similar to #896 than #1536.

There's some work that needs to be done for managing required arguments, but I think we need some more consistency regarding that throughout the library and it's not a reason to hold this feature back.

Comment thread pygmt/src/binstats.py Resolved
Comment thread pygmt/src/binstats.py Resolved
Test binstats with no set outgrid.
"""
temp_grid = binstats(
data="@capitals.gmt",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you add this to pygmt.helpers.testing.download_test_data?

@willschlitzer
willschlitzer merged commit 40ab2d9 into main Jun 13, 2022
@willschlitzer
willschlitzer deleted the wrap/binstats branch June 13, 2022 07:52
@willschlitzer willschlitzer removed the final review call This PR requires final review and approval from a second reviewer label Jun 13, 2022
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
*Wrap gmtbinstats function
*Add test_binstats.py
*Add binstats to API index
*Add remote files "@capitals.gmt" to cached files

Co-authored-by: Wei Ji <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Max Jones <[email protected]>

This branch was previously deployed

1 inactive deployment
Preview — 80017291 Deployed Jun 13, 2022 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Brand new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants