We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3161963 commit 026f6e4Copy full SHA for 026f6e4
pygmt/clib/session.py
@@ -1669,10 +1669,12 @@ def virtualfile_from_stringio(self, stringio: io.StringIO):
1669
if current_segment["data"]: # Add the last segment if it has data
1670
segments.append(current_segment)
1671
1672
- # One table with one or more segments. No numeric data, so n_columns is 0.
+ # One table with one or more segments.
1673
+ # n_rows is the maximum number of rows/records for all segments.
1674
+ # n_columns is the number of numeric data columns, so it's 0 here.
1675
n_tables = 1
1676
n_segments = len(segments)
- n_rows = sum(len(segment["data"]) for segment in segments)
1677
+ n_rows = max(len(segment["data"]) for segment in segments)
1678
n_columns = 0
1679
1680
# Create the GMT_DATASET container
0 commit comments