user script load is not always recompiling scripts.
We corrected the "bug" .position() to .position, reloaded, and still get the error. Any ideas?
!!! === TypeError: 'float' object is not callable === !!! ( for more details type cmd 'last_error' )
NSCOPE [53]: last_error
Out [53]: Traceback (most recent call last):
File "/users/blissadm/local/bliss.git/bliss/shell/cli/repl.py", line 734, in embed
cmd_line_i._execute(inp)
File "/users/blissadm/local/bliss.git/bliss/shell/cli/repl.py", line 455, in _execute
raise return_value[1].with_traceback(return_value[2])
File "/users/blissadm/local/bliss.git/bliss/shell/cli/repl.py", line 433, in _execute_task
return self._another_execute(*args, **kwargs)
File "/users/blissadm/local/bliss.git/bliss/shell/cli/repl.py", line 387, in _another_execute
result = eval(code, self.get_globals(), self.get_locals())
File "<stdin>", line 1, in <module>
File "/users/opid11/bliss_scripts/nc_bliss.py", line 68, in nchoriz_px
print( "Multiply by distance to lens (shnee) = ",-shift*shnee.position/25)
TypeError: 'float' object is not callable
NSCOPE [54]: prdef(user.nchoriz_px)
'nchoriz_px' is defined in:
/users/opid11/bliss_scripts/nc_bliss.py:60
def nchoriz_px(rng = 1, count_time = 1, nbpoints = 40):
if(abs(rot.position - 90) > 10):
rot.move(90)
scans_data,raypos = raytrace(s9ho,s9hg,px,rng,count_time,nbpoints)
# estimate the shift in x needed to correct the aberation:
shift = raypos[2]-raypos[0]
print( "Difference = ",shift)
print( "Divide by beam offset at lens (25 um) = ",shift/25)
print( "Multiply by distance to lens (shnee) = ",-shift*shnee.position/25)
NSCOPE [55]: