mirror of
https://github.com/echemdata/galvani.git
synced 2025-12-14 01:15:34 +00:00
Linting
This commit is contained in:
@@ -633,7 +633,10 @@ class MPRfile:
|
|||||||
if col.startswith("unknown_colID"):
|
if col.startswith("unknown_colID"):
|
||||||
unknown_cols.append(col)
|
unknown_cols.append(col)
|
||||||
if len(unknown_cols) > 3:
|
if len(unknown_cols) > 3:
|
||||||
raise RuntimeError("Too many unknown columns to attempt to read combinatorially: %s" % unknown_cols)
|
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
|
||||||
@@ -653,7 +656,11 @@ class MPRfile:
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
raise RuntimeError("Unable to read data for unknown columns %s with any of the common dtypes %s", unknown_cols, UNKNOWN_COLUMN_TYPE_HIERARCHY)
|
raise RuntimeError(
|
||||||
|
"Unable to read data for unknown columns %s with any of the common dtypes %s",
|
||||||
|
unknown_cols,
|
||||||
|
UNKNOWN_COLUMN_TYPE_HIERARCHY
|
||||||
|
)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
self.dtype = np.dtype(dtypes)
|
self.dtype = np.dtype(dtypes)
|
||||||
|
|||||||
Reference in New Issue
Block a user