Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demos.optics.ex7.py does not work #66

Open
sergey-tomin opened this issue May 30, 2017 · 0 comments
Open

demos.optics.ex7.py does not work #66

sergey-tomin opened this issue May 30, 2017 · 0 comments
Assignees

Comments

@sergey-tomin
Copy link
Collaborator

initializing ocelot...
wavelength 1.239841929798582e-10
Traceback (most recent call last):
File "C:/Users/tomins/Documents/Dropbox/DESY/repository/ocelot/demos/optics/ex7.py", line 28, in
w1 = read_signal(file_name='data/pulse_9kev_20fs.txt', npad =10, E_ref = E_ev)
File "C:\Users\tomins\Documents\Dropbox\DESY\repository\ocelot\optics\utils.py", line 54, in read_signal
s.freq_k = -np.roll(s.freq_k, len(spec)/2) + k0 # take into account s/t
File "C:\Users\tomins\AppData\Local\Continuum\Anaconda3\lib\site-packages\numpy\core\numeric.py", line 1398, in roll
res = a.take(indexes, axis)
TypeError: Cannot cast array data from dtype('float64') to dtype('int64') according to the rule 'safe'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants