Swarm-CG icon indicating copy to clipboard operation
Swarm-CG copied to clipboard

"CG ITP file constraints have been grouped, but constraints group 1 holds lines that have different parameters"

Open StefanoMuscat opened this issue 3 years ago • 1 comments

Hi,

When 'constraints' are present in the topology, the programme gives an error. I think there is a line of code missing in the 'read.py' file, after line 281. I think the missing line is: cg_itp["constraint"][nb_constraints]["value_user"].append(float(sp_itp_line[3]))

Thank you

StefanoMuscat avatar Jul 12 '22 11:07 StefanoMuscat

I have also ran into this issue. There doesn't seem to be a line that writes to value_user for the constraints. It therefore has a length of 0 and the check for length 1 fails.

a-ws-m avatar Feb 19 '24 16:02 a-ws-m