Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sequence_plus converter from kwargs_to_string #3207

Merged
merged 2 commits into from
Apr 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions pygmt/helpers/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,10 +630,8 @@ def kwargs_to_strings(**conversions):

Conversions available:

* 'sequence': transforms a sequence (list, tuple) into a ``'/'`` separated
string
* 'sequence_comma': transforms a sequence into a ``','`` separated string
* 'sequence_plus': transforms a sequence into a ``'+'`` separated string
* "sequence": transform a sequence (list, tuple) into a ``"/"`` separated string
* "sequence_comma": transform a sequence into a ``","`` separated string

Parameters
----------
Expand Down Expand Up @@ -719,11 +717,7 @@ def kwargs_to_strings(**conversions):
>>> module(["data1.txt", "data2.txt"], ("20p", "20p"), R=[1, 2, 3, 4])
['data1.txt', 'data2.txt'] 20p/20p {'R': '1/2/3/4'}
"""
separators = {
"sequence": "/",
"sequence_comma": ",",
"sequence_plus": "+",
}
separators = {"sequence": "/", "sequence_comma": ","}

for arg, fmt in conversions.items():
if fmt not in separators:
Expand Down