GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Session.virtualfile_in: Deprecate parameter 'required_z'. Use 'mincols' instead (will be removed in v0.20.0) by seisman · Pull Request #3369 · GenericMappingTools/pygmt

Conversation

@seisman

@seisman seisman commented Aug 4, 2024 •
edited by weiji14
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Related to #3836.

This PR removes the required_z parameter and add a new parameter mincols. required_z=True means mincols=3.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@seisman
seisman force-pushed the refactor/virtualfile_in branch 2 times, most recently from f1e6aca to 9e78da0 Compare August 4, 2024 11:01
@seisman seisman changed the title Session.virtualfile_in: Remove the extra_arrays parameter Refactor Session.virtualfile_in, removing 'extra_arrays'/'required_z' and add 'required_cols' Aug 4, 2024
@seisman
seisman force-pushed the refactor/virtualfile_in branch 2 times, most recently from 2a1db22 to b33476c Compare August 4, 2024 12:39
@seisman seisman added this to the 0.14.0 milestone Aug 5, 2024
@seisman seisman removed this from the 0.14.0 milestone Sep 5, 2024
@seisman seisman mentioned this pull request Oct 2, 2024
data_kind: Add more tests to demonstrate the data kind of various data types #3480
Merged
@seisman
seisman force-pushed the refactor/data_kind branch from bca59f5 to 808755d Compare October 3, 2024 09:21
@seisman
seisman changed the base branch from refactor/data_kind to main October 3, 2024 09:26
@seisman seisman mentioned this pull request Oct 3, 2024
Refactor the virtualfile_in function to accept more 1-D arrays #2744
Closed
@seisman seisman self-assigned this Oct 30, 2024
@seisman seisman mentioned this pull request Feb 22, 2025
Refactor _validate_data_input to simplify the codes #3818
Draft
@seisman seisman changed the title Refactor Session.virtualfile_in, removing 'extra_arrays'/'required_z' and add 'required_cols' Session.virtualfile_in: Remove parameter 'required_z' and add 'ncols' Mar 5, 2025
@seisman
Rename 'required_z' to 'required_ncols' in _validate_data_input
5d3d308
@seisman
seisman force-pushed the refactor/virtualfile_in branch from d7ca533 to feddd9c Compare March 5, 2025 08:06
seisman added 3 commits March 5, 2025 16:12
@seisman
Rename 'required_z' to 'required_ncols' in Session.virtualfile_in
406cb39
@seisman
Rename 'required_z' to 'required_ncols' in Session.virtualfile_in tests
af189e6
@seisman
Rename 'required_z' to 'required_ncols' in module wrappers
2d55e5a
@seisman
seisman force-pushed the refactor/virtualfile_in branch from feddd9c to 2d55e5a Compare March 5, 2025 08:12
@weiji14 weiji14 mentioned this pull request Mar 6, 2025
Session.virtualfile_in: Deprecate the parameter 'extra_arrays'. Prepare and pass a dictionary of arrays instead (will be removed in v0.20.0) #3823
Merged
@seisman seisman mentioned this pull request Mar 6, 2025
Ideas on refactoring the Session.virtualfile_in method #3836
Open
3 of 6 tasks
@seisman seisman added this to the 0.16.0 milestone Mar 6, 2025
seisman added 2 commits March 10, 2025 16:07
@seisman
Merge branch 'main' into refactor/virtualfile_in
84e8d8a
@seisman
Rename required_ncols to the shorter ncols
5eeb37b
seisman
seisman commented Mar 10, 2025
View reviewed changes
Comment thread pygmt/helpers/utils.py Outdated
GMTInvalidInput
If the data input is not valid.
"""
required_z = ncols >= 3

@seisman seisman Mar 10, 2025

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This is just a temporary fix. Will refactor _validate_data_input in #3818.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@seisman seisman added the deprecation Deprecating a feature label Mar 10, 2025
seisman added 2 commits March 26, 2025 16:46
@seisman
Merge branch 'main' into refactor/virtualfile_in
2851af8
@seisman
Deprecate required_z in a backward-compatible way
0e0c1d8
@seisman seisman changed the title Session.virtualfile_in: Remove parameter 'required_z' and add 'ncols' Session.virtualfile_in: Deprecate parameter 'required_z'. Use 'ncols' instead (will be removed in v0.20.0) Mar 26, 2025
@seisman
Add one test with the deprecated 'required_z' parameter to increase c…
f8293cd
…ode coverage
@seisman
seisman marked this pull request as ready for review March 26, 2025 09:19
seisman added 2 commits March 28, 2025 21:39
@seisman
Merge branch 'main' into refactor/virtualfile_in
312aa39
@seisman
Move TODO comment to the top
b7ca239
@seisman seisman added needs review This PR has higher priority and needs review. and removed needs review This PR has higher priority and needs review. labels Mar 28, 2025
@seisman
seisman marked this pull request as draft April 2, 2025 04:13
seisman added 2 commits April 15, 2025 10:48
@seisman
Merge branch 'main' into refactor/virtualfile_in
a01afbb
@seisman
Put ncols before required_data
da874d1
@seisman
seisman marked this pull request as ready for review April 15, 2025 02:53
@seisman seisman added the needs review This PR has higher priority and needs review. label Apr 15, 2025
seisman added 4 commits April 15, 2025 13:12
@seisman
Merge branch 'main' into refactor/virtualfile_in
0612cdf
@seisman
Merge branch 'main' into refactor/virtualfile_in
4fba462
@seisman
Merge branch 'main' into refactor/virtualfile_in
ef1f82a
@seisman
Merge branch 'main' into refactor/virtualfile_in
4fae564
weiji14
weiji14 approved these changes Apr 27, 2025
View reviewed changes

@weiji14 weiji14 left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Debating on whether to call the parameter mincols instead of ncols, but leave it up to you to decide.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pygmt/clib/session.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

seisman and others added 3 commits April 28, 2025 15:57
@seisman @weiji14
Update pygmt/clib/session.py
970b824
Co-authored-by: Wei Ji <[email protected]>
@seisman
Merge branch 'main' into refactor/virtualfile_in
c5eb0e9
@seisman
Rename ncols to mincols
41ff984
@seisman seisman changed the title Session.virtualfile_in: Deprecate parameter 'required_z'. Use 'ncols' instead (will be removed in v0.20.0) Session.virtualfile_in: Deprecate parameter 'required_z'. Use 'mincols' instead (will be removed in v0.20.0) Apr 28, 2025
@seisman
seisman merged commit f389e05 into main Apr 28, 2025
@seisman
seisman deleted the refactor/virtualfile_in branch April 28, 2025 09:00
@seisman seisman removed the needs review This PR has higher priority and needs review. label Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@weiji14 weiji14 weiji14 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@seisman seisman

Labels

deprecation Deprecating a feature

Projects

None yet

Milestone

0.16.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@seisman @weiji14
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.