Skip to content

Wrap grdinfo aliases#799

Merged
willschlitzer merged 49 commits into
GenericMappingTools:masterfrom
willschlitzer:grdinfo-alias
Feb 7, 2021
Merged

Wrap grdinfo aliases#799
willschlitzer merged 49 commits into
GenericMappingTools:masterfrom
willschlitzer:grdinfo-alias

Conversation

@willschlitzer

@willschlitzer willschlitzer commented Jan 21, 2021

Copy link
Copy Markdown
Contributor

Wrapping the R, C, D, F, I, L, T, and M aliases for grdinfo. This is the first part of improving grdinfo, as mentioned in #593 , and once this is done I intend to create an argument to return a dictionary of the grdinfo values.

Ref GMT.jl at https://www.generic-mapping-tools.org/GMT.jl/v0.28/#GMT.grdinfo

Documentation preview is at https://pygmt-git-fork-willschlitzer-grdinfo-alias.gmt.vercel.app/api/generated/pygmt.grdinfo.html#pygmt.grdinfo

Comment thread pygmt/modules.py Outdated
@weiji14 weiji14 added the documentation Improvements or additions to documentation label Jan 21, 2021
@willschlitzer

Copy link
Copy Markdown
Contributor Author

@seisman I think I have taken care of all of your recommended changes

@weiji14 weiji14 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.

Just some more minor suggestions :)

Comment thread pygmt/modules.py Outdated
Comment thread pygmt/src/grdinfo.py
Comment thread pygmt/src/grdinfo.py Outdated
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>

@weiji14 weiji14 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.

One more tick off the list 😄

Comment thread pygmt/src/grdinfo.py Outdated
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@weiji14

weiji14 commented Feb 6, 2021

Copy link
Copy Markdown
Member

@willschlitzer, could you squash and merge this yourself? Remember to summarize the commit message!

@willschlitzer

Copy link
Copy Markdown
Contributor Author

@GenericMappingTools/python It looks like this keeps failing Windows tests (but not the same tests). Is there a particular method we use to squash and merge, or should I just follow the command line instructions that GitHub recommends?

@weiji14

weiji14 commented Feb 7, 2021

Copy link
Copy Markdown
Member

@GenericMappingTools/python It looks like this keeps failing Windows tests (but not the same tests).

It's ok to ignore the random Windows test failures (we've been trying unsuccessfully to debug and fix it for a while now, see #758).

Is there a particular method we use to squash and merge, or should I just follow the command line instructions that GitHub recommends?

Just use the Github UI (i.e. click the 'squash and merge' button). Do not use the command line instructions as it does a slightly different thing. I'll disable the required Windows checks so you can merge (after resolving the conflict on pygmt/src/__init__.py).

@weiji14

weiji14 commented Feb 7, 2021

Copy link
Copy Markdown
Member

/format

@willschlitzer willschlitzer merged commit 073a83a into GenericMappingTools:master Feb 7, 2021
@willschlitzer willschlitzer deleted the grdinfo-alias branch February 7, 2021 14:12
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022
*Wrap grdinfo R, C, D, F, I, L, T, and M aliases
*Move grdinfo function to grdinfo.py

Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: actions-bot <58130806+actions-bot@users.noreply.github.com>
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants