You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File ~/.env/lib/python3.10/site-packages/linopy/constraints.py:295, in __repr__(self)
293 else:
294 line = f"{print_coord(coord)}: None"
--> 295 lines.append(line)
296 lines = align_lines_by_delimiter(lines, list(SIGNS_pretty.values()))
298 shape_str = ", ".join(f"{d}: {s}" for d, s in zip(dims, dim_sizes))
KeyError: 0
When I add at least one additional coordinate to coords, a different error is raised:
File ~/.env/lib/python3.10/site-packages/linopy/constraints.py:295, in __repr__(self)
293 else:
294 line = f"{print_coord(coord)}: None"
--> 295 lines.append(line)
296 lines = align_lines_by_delimiter(lines, list(SIGNS_pretty.values()))
298 shape_str = ", ".join(f"{d}: {s}" for d, s in zip(dims, dim_sizes))
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed
I was able to reproduce some (different) errors for the names: "labels", "coeffs", "vars", "rhs". I found these in constraint.py in line 671:
When I name a coordinate "sign", an error is raised when I try to create an constraint.
Here a short example to reproduce the issue:
Error message:
When I add at least one additional coordinate to
coords
, a different error is raised:I was able to reproduce some (different) errors for the names: "labels", "coeffs", "vars", "rhs". I found these in
constraint.py
in line 671:The text was updated successfully, but these errors were encountered: