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
There is an error when trying to use a file as reflectivity from PreMLayer.
In the other hand, using the option file 1D: (reflectivity vs energy) works very well.
As a suggestion:
Since typically this file will be generated for example by XOPPY multilayer, the reflectivity can be saved as TAB separated (and can be read by shadow4), but always write a header, so it might be useful to skip the first row when loading:
Another typical code to get the ML reflectivty is IMD for example, which uses ';' as comment, so it could be useful to define a comments='; ' to load directly files from it? (maybe is just too much)
May be in the future would by nice just to accept the connection of XOPPY Multilayer?
Cheers, J
The text was updated successfully, but these errors were encountered:
I wonder if it is convenient to create a separate widget for multilayers. The "shadow concept" of integrating multilayer reflectivity with mirrors is not very logic. We could create a PreMLayer preprocessor, somehow upgraded with a plot of the reflectivity, and maybe with a different (and easier) format and use it in the new mlayer widgets. Moreover, the widget would accept the external reflectivity files like in a mirror ( R(E), E(theta), R(E,theta)).
It will also be necessary to automaticcaly ling the xoppy mlayer (0r xoppy f1f2) to the mlayer (mirror).
Also, do not load the lines that contain comments in an automatic way.
There is an error when trying to use a file as reflectivity from PreMLayer.
In the other hand, using the option file 1D: (reflectivity vs energy) works very well.
As a suggestion:
Since typically this file will be generated for example by XOPPY multilayer, the reflectivity can be saved as TAB separated (and can be read by shadow4), but always write a header, so it might be useful to skip the first row when loading:
shadow4/shadow4/beamline/optical_elements/mirrors/s4_mirror.py
Line 223 in c73d6be
Another typical code to get the ML reflectivty is IMD for example, which uses ';' as comment, so it could be useful to define a
comments='; '
to load directly files from it? (maybe is just too much)May be in the future would by nice just to accept the connection of XOPPY Multilayer?
Cheers, J
The text was updated successfully, but these errors were encountered: