Skip to content

Add args_in_kwargs function - #791

Merged
seisman merged 21 commits into
GenericMappingTools:masterfrom
willschlitzer:args-in-kwargs
Jan 15, 2021
Merged

seisman merged 21 commits into
GenericMappingTools:masterfrom
willschlitzer:args-in-kwargs

Conversation

@willschlitzer

Copy link
Copy Markdown
Contributor

As discussed in #787, the args_in_kwargs function is used to determine if at least one of the required arguments are passed to the function before the arguments are passed to the GMT API. The function takes a list of required arguments, using the GMT short name aliases, and a dictionary of the kwargs, which is the format that is returned by the _preprocess function in BasePlotting. It returns a Boolean value, with the idea that the plotting function raises the GMTInvalidInput Error if it returns False.

@willschlitzer willschlitzer added the maintenance Boring but important stuff for the core devs label Jan 9, 2021
@willschlitzer willschlitzer added this to the 0.3.0 milestone Jan 9, 2021
Comment thread pygmt/helpers/utils.py Resolved
Comment thread pygmt/helpers/utils.py Resolved
Co-authored-by: Dongdong Tian <[email protected]>
Co-authored-by: Dongdong Tian <[email protected]>
Comment thread pygmt/helpers/utils.py Resolved
Comment thread pygmt/helpers/utils.py Resolved
Comment thread pygmt/helpers/utils.py Resolved
Comment thread pygmt/helpers/utils.py Resolved
Comment thread pygmt/helpers/utils.py Resolved
Comment thread pygmt/helpers/utils.py Resolved
Comment thread pygmt/helpers/utils.py Resolved
Co-authored-by: Dongdong Tian <[email protected]>
willschlitzer and others added 4 commits January 15, 2021 09:46
@seisman

seisman commented Jan 15, 2021

Copy link
Copy Markdown
Member

/format

Comment thread pygmt/helpers/utils.py Resolved
Comment thread pygmt/helpers/utils.py Resolved
Comment thread pygmt/helpers/utils.py Resolved
@seisman

seisman commented Jan 15, 2021

Copy link
Copy Markdown
Member

/format

@seisman
seisman merged commit 737b940 into GenericMappingTools:master Jan 15, 2021
@willschlitzer
willschlitzer deleted the args-in-kwargs branch January 18, 2021 01:12
sixy6e pushed a commit to sixy6e/pygmt that referenced this pull request Dec 21, 2022

This branch was previously deployed

1 inactive deployment
Preview — 470829ce Deployed Jan 15, 2021 by vercel[bot]
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants