File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1669,10 +1669,12 @@ def virtualfile_from_stringio(self, stringio: io.StringIO):
1669
1669
if current_segment ["data" ]: # Add the last segment if it has data
1670
1670
segments .append (current_segment )
1671
1671
1672
- # One table with one or more segments. No numeric data, so n_columns is 0.
1672
+ # 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.
1673
1675
n_tables = 1
1674
1676
n_segments = len (segments )
1675
- n_rows = sum (len (segment ["data" ]) for segment in segments )
1677
+ n_rows = max (len (segment ["data" ]) for segment in segments )
1676
1678
n_columns = 0
1677
1679
1678
1680
# Create the GMT_DATASET container
You can’t perform that action at this time.
0 commit comments