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

**Breaking**: data_kind: data is None and required now returns the 'empty' kind #3482

Merged
merged 30 commits into from
Oct 16, 2024
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0c82b3c
data_kind: Refactor the if-else statements into if-return statements
seisman Oct 3, 2024
808755d
data_kind: Now 'matrix' represents a 2-D numpy array and unrecognizd …
seisman Oct 3, 2024
0eb4f8f
Make 'data' a required parameter
seisman Oct 3, 2024
9891b2c
Fix x2sys_cross as pd.DataFrame is 'vectors' kind now
seisman Oct 3, 2024
a9d094c
Fix legend as now 'vectors' doesn't mean data is None
seisman Oct 3, 2024
a0e1848
data_kind: data is None and required now returns the 'none' kind
seisman Oct 3, 2024
3d8be4d
Add docstrings for stringio
seisman Oct 3, 2024
7c104a9
Merge branch 'data_kind/return' into refactor/data_kind
seisman Oct 4, 2024
5790923
Merge branch 'main' into refactor/data_kind
seisman Oct 7, 2024
6954c5d
Fix docstrings
seisman Oct 7, 2024
ddda3b9
Merge branch 'refactor/data_kind' into data_kind/vectors-none
seisman Oct 7, 2024
9300ca3
Merge branch 'main' into refactor/data_kind
seisman Oct 7, 2024
2701a4a
Merge branch 'main' into refactor/data_kind
seisman Oct 8, 2024
c3cb459
Merge branch 'refactor/data_kind' into data_kind/vectors-none
seisman Oct 8, 2024
7fcf57f
Merge branch 'main' into refactor/data_kind
seisman Oct 10, 2024
91eb1b6
Merge branch 'refactor/data_kind' into data_kind/vectors-none
seisman Oct 10, 2024
a1e67d3
Rename 'none' kind to 'empty'
seisman Oct 11, 2024
991f688
Merge branch 'main' into refactor/data_kind
seisman Oct 11, 2024
c83c9f8
Merge branch 'refactor/data_kind' into data_kind/vectors-none
seisman Oct 11, 2024
ea9ddaa
Update pygmt/helpers/utils.py
seisman Oct 14, 2024
6f55375
clib: Switch the order of if-conditions to improve the Session.call_m…
seisman Oct 11, 2024
3252988
Fix the conversion error for pandas.Series with missing values in pan…
seisman Oct 11, 2024
003d8a1
Add type hints for GMT anchor codes (#3459)
seisman Oct 11, 2024
edf80c0
clib.Session: Add type hints and reformat docstrings (part 1) (#3504)
seisman Oct 11, 2024
fde7901
clib.conversion: Add type hints and improve docstrings for dataarray_…
seisman Oct 11, 2024
78fdfb1
Update pygmt/helpers/utils.py
seisman Oct 14, 2024
ebb3257
Merge branch 'main' into data_kind/vectors-none
seisman Oct 16, 2024
e2b47b6
Merge remote-tracking branch 'origin/data_kind/vectors-none' into dat…
seisman Oct 16, 2024
a469acf
Fix docstrings
seisman Oct 16, 2024
74bc161
Remove duplicated doctest
seisman Oct 16, 2024
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
Prev Previous commit
Next Next commit
Update pygmt/helpers/utils.py
Co-authored-by: Wei Ji <[email protected]>
seisman and weiji14 committed Oct 16, 2024
commit 78fdfb186c8ce5c112cf04cebdc7656d567edf5a
2 changes: 1 addition & 1 deletion pygmt/helpers/utils.py
Original file line number Diff line number Diff line change
@@ -246,7 +246,7 @@ def data_kind(

The "empty" kind:

>>> data_kind(data=None)
>>> data_kind(data=None, required=True)
'empty'

The "file" kind: