mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
Constraint features: Fix conversion to list
This commit is contained in:
@@ -243,7 +243,7 @@ class FeaturesExtractor:
|
||||
)
|
||||
cf = instance.get_constraint_features(cname)
|
||||
if isinstance(cf, np.ndarray):
|
||||
cf = tuple(cf.tolist())
|
||||
cf = cf.tolist()
|
||||
assert isinstance(cf, list), (
|
||||
f"Constraint features must be a list. "
|
||||
f"Found {type(cf).__name__} instead for cname={cname}."
|
||||
|
||||
Reference in New Issue
Block a user