mirror of
https://github.com/echemdata/galvani.git
synced 2025-12-14 01:15:34 +00:00
Add guard for combinatorially exploring more than 3 unknown column data types
This commit is contained in:
@@ -632,6 +632,8 @@ class MPRfile:
|
|||||||
for col, _ in dtypes:
|
for col, _ in dtypes:
|
||||||
if col.startswith("unknown_colID"):
|
if col.startswith("unknown_colID"):
|
||||||
unknown_cols.append(col)
|
unknown_cols.append(col)
|
||||||
|
if len(unknown_cols) > 3:
|
||||||
|
raise RuntimeError("Too many unknown columns to attempt to read combinatorially: %s" % unknown_cols)
|
||||||
|
|
||||||
if unknown_cols:
|
if unknown_cols:
|
||||||
# create a list of all possible combinations of dtypes
|
# create a list of all possible combinations of dtypes
|
||||||
|
|||||||
Reference in New Issue
Block a user