Skip to content

Add args_in_kwargs function#791

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

Add args_in_kwargs function#791
seisman merged 21 commits intoGenericMappingTools:masterfrom
willschlitzer:args-in-kwargs

Conversation

@willschlitzer
Copy link
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
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
willschlitzer and others added 4 commits January 15, 2021 09:46
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
@seisman
Copy link
Member

seisman commented Jan 15, 2021

/format

@seisman
Copy link
Member

seisman commented Jan 15, 2021

/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
Co-authored-by: Dongdong Tian <seisman.info@gmail.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

maintenance Boring but important stuff for the core devs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants