Replies: 5 comments
-
Dear Marcraven, Sorry for the confusion. In the current version of Diffraction events will accumulate like you say. A frame is simply a collection of scattering units that you may render whenever you like. At any time you may empty ( As far as I can see your script looks ok! What seems to be the problem? Have you tried to track the sample centroid with Best, |
Beta Was this translation helpful? Give feedback.
-
If you have the files I could try to debug your snippet locally if you like. I am keen to make sure there is no issue in the repo. Best, |
Beta Was this translation helpful? Give feedback.
-
Hi @AxelHenningsson, Is it possible that the rotation and translation don't take place homogeneously over all frames? It feels like the first frame is very intense( maybe accumulating all the rotation), and the following frames have fewer spots in comparison. |
Beta Was this translation helpful? Give feedback.
-
Hi @Marcraven I doubt this. it would be a major bug in Looking at your code again I see that you have a very small rotation for the diffraction motion ( A pure translation of a rigid polycrystal will not change the angle of incidence between the Miller planes and the direct beam. Thus a pure translation will not give rise to diffraction unless the model was to include wavelength broadening or continuous lattice orientation fields. Cheers |
Beta Was this translation helpful? Give feedback.
-
@Marcraven : Is there still some doubt related to the output of your simulation? In this case I suggest that you provide access to a full reproducible example. Otherwise, If there is nothing else I may assist you with in relation to this discussion (which I am happy to do), I will close this thread as completed. Best, |
Beta Was this translation helpful? Give feedback.
-
This is a continuation of a discussion which started via mail, but we consider it might be interesting for other users. I wanted to perform a raster scan with the beam in the Y axis, then rotate the sample by one degree and then scan again. This whole process for 360 degrees. The script had the following structures:
The rationale behind all these RigidBodyMotions is;
If I understood correctly polycrystal.diffract actually leaves the sample transformed?
I also have the issue that the second iteration gives rise to 2*67 frames, for some reason it looks like the frames accumulate over iterations. ¿Is that possible?
Cheers,
PD: In polycrystal.diffract I now empty the detector.frames list before the frame creation and it seems to only then consider the current diffraction events instead of accumulating.
Beta Was this translation helpful? Give feedback.
All reactions