mirror of
https://github.com/echemdata/galvani.git
synced 2025-12-13 17:05:35 +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:
|
||||
if col.startswith("unknown_colID"):
|
||||
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:
|
||||
# create a list of all possible combinations of dtypes
|
||||
|
||||
Reference in New Issue
Block a user