| 1 |
# test_ActivationList.praat |
| 2 |
# djmw 20151020, 20160524 |
| 3 |
|
| 4 |
appendInfoLine: "test_ActivationList.praat" |
| 5 |
|
| 6 |
appendInfoLine: tab$ , "Read old format from disk" |
| 7 |
old = Read from file: "old_type.Activation" |
| 8 |
removeObject: old |
| 9 |
appendInfoLine: tab$ , "Read old format OK" |
| 10 |
|
| 11 |
@test_with_old_type |
| 12 |
|
| 13 |
procedure test_with_old_type |
| 14 |
for irun to 2 |
| 15 |
nrows = 10 |
| 16 |
for ncols to 10 |
| 17 |
tab = Create simple Matrix: "act", nrows, ncols, "0" |
| 18 |
act = To Activation |
| 19 |
Formula: ~ randomUniform (0, 0.99) |
| 20 |
mat = To Matrix |
| 21 |
for irow to nrows |
| 22 |
for icol to ncols |
| 23 |
val = Get value in cell: irow, icol |
| 24 |
assert 0<= val and val <= 0.99; 'irow' icol' 'val' |
| 25 |
endfor |
| 26 |
endfor |
| 27 |
removeObject: tab, act, mat |
| 28 |
endfor |
| 29 |
endfor |
| 30 |
endproc |
| 31 |
|
| 32 |
appendInfoLine: "test_ActivationList.praat OK" |
| 33 |
|
| 34 |
|