oasys-kit / shadow4

New version of shadow rewritten in python
MIT License
6 stars 2 forks source link

Transfocator problem #41

Open xianbo opened 2 weeks ago

xianbo commented 2 weeks ago
  1. When dragging a wire into a transfocator widget, if the previous optics haven't been run, the transfocator widget will say there is no beam. Then, no matter whether you run the previous optics or not, it will never be able to run again. You will have to restart OASYS and run the whole thing.
  2. When ctrl+D or duplicate a transfocator, it generates an error. It generates a translator widget but does not contain any parameter from the copied one.
  3. Then, the OASYS file cannot be opened anymore. I have no idea which step caused this. The broken file is below. transfocator example.zip
srio commented 2 weeks ago

I couldn't reproduce your errors. However, I discovered some bugs that I fixed. Please try again with the new version. Perhaps you have to redefine your TF from scratch. I also allowed to set zero lenses in a CRL/TF, it can be useful in some cases.