Rev 14516 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | # ensemble |
2 | |||
3 | substep=2 |
||
4 | done=yes |
||
5 | !if $all_steps=0 |
||
14516 | bpr | 6 | badstep=!trim $badstep |
7 | !bound badstep between integer 0 and $stepcnt+1 default $stepcnt+1 |
||
8 | sss=!item 1 of $bad_steps |
||
9 | !default sss=0 |
||
10 | !if $badstep=$sss |
||
11 | module_score=10 |
||
23 | reyssat | 12 | !else |
14516 | bpr | 13 | error=bad_step |
14 | !if $badstep=0 or $badstep notitemof $bad_steps |
||
15 | module_score=0 |
||
16 | !else |
||
17 | module_score=5 |
||
18 | !endif |
||
23 | reyssat | 19 | !endif |
20 | !else |
||
16377 | bpr | 21 | !distribute item 0, into er,expstep |
22 | !for i=1 to $stepcnt |
||
14516 | bpr | 23 | !if ($i isitemof $badstep and $i notitemof $bad_steps) \ |
16377 | bpr | 24 | or ($i notitemof $badstep and $i isitemof $bad_steps) |
14516 | bpr | 25 | !advance er |
26 | m=!line $i of $remarks |
||
27 | m=!trim $m |
||
28 | !if $i isitemof $bad_steps or $m!=$empty |
||
29 | expstep=!append item $i to $expstep |
||
30 | !endif |
||
31 | !endif |
||
16377 | bpr | 32 | !next i |
23 | reyssat | 33 | module_score=$[10*($stepcnt-$er)/$stepcnt] |
34 | !endif |