Sorry for the slow reply, I was on holidays.
The syntax error your are seeing as strictly speaking nothing to do with the while loop.
You can only have simple variables names as target of assignments, so "dummy[i]q[j]" is not a valid target.
The simplest way to fix this is to duplicate your "if" line 40 times:
- dummy1q1: if(condition, False, dummy1q1)
- dummy1q2: if(condition, False, dummy1q2)
- dummy1q3: if(condition, False, dummy1q3)
- dummy1q4: if(condition, False, dummy1q4)
[…]
You could probably also solve this by storing all those dummy variables in an array created using array([False, False, etc.]), you could simply do:
- dummy: if(condition, False, dummy)
But then you would be entering undocumented territory so I wouldn't advise doing that unless you know what you are doing.
Gaëtan
--
You received this message because you are subscribed to the Google Groups "liam2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
liam2-users...@googlegroups.com.
To post to this group, send email to
liam2...@googlegroups.com.
Visit this group at https://groups.google.com/group/liam2-users.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/liam2-users/8e9362d7-8c0f-4c39-a2b4-35a2170f841c%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to liam2...@googlegroups.com.
To post to this group, send email to liam2...@googlegroups.com.
Visit this group at https://groups.google.com/group/liam2-users.
To view this discussion on the web, visit https://groups.google.com/d/msgid/liam2-users/8e9362d7-8c0f-4c39-a2b4-35a2170f841c%40googlegroups.com.
Hi again,
Sorry, but the exec solution is not going to happen, probably ever. On the other hand, the array solution will happen one day. Technically, many of the pre-requisites for that feature (array fields) are already in place and the missing bits wouldn't be too hard to implement… BUT, given the very little time I spend on LIAM2 these days, that is not going to happen "soonish" unless we receive significant help or funding from another institution.
Gaëtan
To unsubscribe from this group and stop receiving emails from it, send an email to
liam2-users...@googlegroups.com.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/liam2-users/d4d9d778-e02a-4b97-aab3-7073821be379%40googlegroups.com.