Skip to content

Refactor build_arg_string to also deal with infile and outfile - #1837

Merged
seisman merged 8 commits into
mainfrom
refactor-build_arg_string
Apr 4, 2022
Merged

Refactor build_arg_string to also deal with infile and outfile#1837
seisman merged 8 commits into
mainfrom
refactor-build_arg_string

Conversation

@seisman

@seismanseisman commented Mar 21, 2022

Copy link
Copy Markdown
Member

Description of proposed changes

Closes#1832.

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 wrapping a new module, open a 'Wrap new GMT module' issue and submit reasonably-sized PRs.
  • 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

Comment threadpygmt/helpers/utils.py Outdated
Comment threadpygmt/helpers/utils.py Outdated
@seismanseisman added the maintenance Boring but important stuff for the core devs label Apr 2, 2022
@seismanseisman added this to the 0.6.1 milestone Apr 2, 2022
Comment threadpygmt/src/blockm.py
lib.call_module(module=block_method, args=arg_str)
lib.call_module(
module=block_method,
args=build_arg_string(kwargs, infile=infile, outfile=outfile),

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.

Still having mixed feeling about having kwargs as the first argument here, but I guess it works 🙃

@weiji14weiji14 added the final review call This PR requires final review and approval from a second reviewer label Apr 3, 2022
@seisman

Copy link
Copy Markdown
MemberAuthor

This PR will conflict with PR #1857 or #1862, due to changes in grd2cpt and makecpt. We need to decide which PR should be merged first.

@weiji14

Copy link
Copy Markdown
Member

This PR will conflict with PR #1857 or #1862, due to changes in grd2cpt and makecpt. We need to decide which PR should be merged first.

Merge this one (#1837) first, so that you can proceed with #1831/#1832. The conflicts in #1857 and #1862 can be resolved later.

@seisman
seisman marked this pull request as ready for review April 3, 2022 15:56
@seisman
seisman merged commit a1924e8 into mainApr 4, 2022
@seisman
seisman deleted the refactor-build_arg_string branch April 4, 2022 07:24
@seismanseisman removed the final review call This PR requires final review and approval from a second reviewer label Apr 4, 2022
@weiji14weiji14 changed the title Refractor build_arg_string to also deal with infile and outfileRefactor build_arg_string to also deal with infile and outfileApr 4, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenanceBoring but important stuff for the core devs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

which(), image() and legend() don't support pathlib.Path inputs

2 participants

@seisman@weiji14