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
$ ls
bug.py bugreport.lat
$ ./bug.py 1
Issuing commands with tao.cmds and then set uni 1 recalculate. Bug evident.
model b1_gradient: 0.0700389223336539
model b1_gradient: 8.17823368208077
model b1_gradient: 10.0
model b1_gradient: 10.0
$ ./bug.py 2
Issuing commands with tao.cmds and then set glo lattice_calc_on=T. Bug evident.
model b1_gradient: 0.0700389223336539
model b1_gradient: 8.17823368208077
model b1_gradient: 10.0
model b1_gradient: 10.0
$ ./bug.py 3
Issuing commands with tao.cmds with suppress_lattice_calc=F. No bug.
model b1_gradient: 0.0700389223336539
model b1_gradient: 10.0
model b1_gradient: 10.0
model b1_gradient: 10.0
$ ./bug.py 4
Issuing commands by iterating tao.cmd. No bug.
model b1_gradient: 0.0700389223336539
model b1_gradient: 10.0
model b1_gradient: 10.0
model b1_gradient: 10.0
The text was updated successfully, but these errors were encountered:
This looks like a Tao problem, not a PyTao problem:
tao -lat bugreport.lat -noplot -startup commands.tao
[MESSAGE | 2024-MAY-30 16:46:04] tao_init:
OpenMP active with number of threads: 10
Using startup file: commands.tao
Tao: set global lattice_calc_on = F
Tao: set ele CAV1 phi0 = -0.1
Tao: set ele Q1 b1_gradient = 10.0
Tao: set global lattice_calc_on = T
Tao: sho value ele::q1[b1_gradient]
8.1782336820807657E+00
cmds.tao:
set global lattice_calc_on = F
set ele CAV1 phi0 = -0.1
set ele Q1 b1_gradient = 10.0
set global lattice_calc_on = T
sho value ele::q1[b1_gradient]
pytao_bug_mwe.tar.gz
Example output:
The text was updated successfully, but these errors were encountered: