-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Travelling wave issue #5
Comments
@hayg25 Thank you for pointing this out, I never noticed the TWS type cavity in the manual. I update the code to better handle fieldmaps, including archiving. Could you test if this works for you? |
Hi @ChristopherMayes , |
@hayg25 I already updated it. Or, are you using conda-forge? |
Yes conda forge but I will install using pip. |
ok I will wait for the conda update, I am somehow facing an error after installation : ImportError Traceback (most recent call last)
<ipython-input-1-7824a10e5180> in <module>
----> 1 from astra import Astra
~/Astra/Lume_Astra/lume-astra/astra/__init__.py in <module>
2 from .generator import AstraGenerator
3 from .evaluate import evaluate_astra_with_generator
----> 4 from .astra_distgen import run_astra_with_distgen, evaluate_astra_with_distgen
5
6 from ._version import __version__
~/Astra/Lume_Astra/lume-astra/astra/astra_distgen.py in <module>
7 from .evaluate import default_astra_merit
8
----> 9 from distgen import Generator
10 from distgen.writers import write_astra
11 from distgen.tools import update_nested_dict
ImportError: cannot import name 'Generator' from 'distgen' (/home/guler/anaconda3/envs/astra/lib/python3.9/site-packages/distgen-1.7-py3.9.egg/distgen/__init__.py) |
@hayg25
|
Hi @ChristopherMayes, Thanks again |
@hayg25 Could you send me a minimal (but complete) example for me to debug? |
Hi @ChristopherMayes , |
Hi @ChristopherMayes , Cheers, |
@hayg25 I added code to correctly plot the periodic field map, and adapted your example: Please let me know if this works for you. |
Hi @ChristopherMayes ,
other question :
Thanks again |
@hayg25 It actually does read You can ignore the RAD warning for now. This is because Astra lets you put in a keyword in place of a file, and LUME-Astra looks at file keys for real files. I will fix this in the future. |
Dear @ChristopherMayes, many thanks |
@hayg25 Thank you, I fixed the code. Would you mind if I use your digram in the example? |
Hi @ChristopherMayes , |
Dear @ChristopherMayes , Many thanks |
Dear All,
we are facing an error using travelling wave. We use an ascii file that describe the Real part of the Ez field. (Astra creates Ez amplitude. )
here is the beginning of the field file :
So in lume-astra I am facing an error concerning the first line which has 4 rows ...
see the error when trying the fieldplot :
Thanks for the feedback.
The text was updated successfully, but these errors were encountered: