Skip to content

Commit ae98a40

Browse files
authored
Convert to array in order to allow for Boolean indexing. (#573)
1 parent ee6b1d7 commit ae98a40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/optimagic/parameters/check_constraints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def check_fixes_and_bounds(constr_info, transformations, parnames):
241241
if is_invalid.any():
242242
info = pd.DataFrame(
243243
{
244-
"names": parnames[is_invalid],
244+
"names": np.array(parnames)[is_invalid],
245245
"lower_bounds": constr_info["lower_bounds"][is_invalid],
246246
"upper_bounds": constr_info["upper_bounds"][is_invalid],
247247
}

0 commit comments

Comments
 (0)