Closed zaharko closed 2 years ago
@zaharko , concerning 2.1, do you have examples of files with 0 points? Also, does ccl_integrate should do the same checks?
Not sure about the 3.2, because the calculation according to that formula give a different result from det2pol
from xtal.py
You can see it on the test server, and let me know which one is correct.
@cblarsen1, @zaharko What plots/buttons/widgets layout do you think to have for the new comparison tab?
The simplest version of it can be just as ccl_integrate, but loading two ccl files (XXXX and YYYY) is possible. Moreover, one extra button is needed in the options of the fit (see description below).
The new button would be located just below where presently we have:
"Intensity: Function Area"
using the same format:
"Difference: XXXX - YYYY YYYY - XXXX"
so that the user can select which data to subtract to the other.
Then clicking on "process all" would fit both ccl files and produce a file that is directly the difference of integrated intensities (same export formats as for ccl_integrate) with properly propagated error.
In general about this tab, it should assume that both ccl files are identical (same reflections measured in the same order). However, if one of the two files is longer than the other, then we still want to have that tab working, by just ignoring all of the reflections that appear in only one of the two files. This can be done simply by comparing the number of reflections in the two ccl files, and ignoring the extra ones at the end of the longest of the two files.
The organisation of the table can remain the same as in the ccl_integrate tab. When selecting one line in the table, the plot area (also the same as in ccl_integrate) shows both XXXX and YYYY data for the selected HKL/line, as well as both fits if data were already processed. However, it would be nice to distinguish the two data and associated fits using different colours or thickness (e.g. all colours remain as in ccl_integrate but XXXX has data points and dashed fit curve also as in ccl_integrate, while YYYY has thicker data points and error bars and dashed fit curve). We can get rid of the "linear" line and associated legend so that we don't have too many things and the plot remains readable.
proposalID 20202357 from 5077-5094 are l-scans But 5087 has no points
On 20 Oct 2021, at 12:57, Ivan Usov @.**@.>> wrote:
@zaharkohttps://github.com/zaharko , concerning 2.1, do you have examples of such files?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/paulscherrerinstitute/pyzebra/issues/41#issuecomment-947554032, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMBMFVCH4RSL54BX6TMJZ33UH2OAVANCNFSM5GI4DJXA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
[ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/paulscherrerinstitute/pyzebra/issues/41#issuecomment-947554032", "url": "https://github.com/paulscherrerinstitute/pyzebra/issues/41#issuecomment-947554032", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
@rsibille-psi , in a view of https://github.com/paulscherrerinstitute/pyzebra/issues/43, would splitting the table into two for nb- and bi- geometries also be fine for ccl compare? I guess, both files will have the same geometry, so all scans will occupy one of the tables only. Another question, will both ccl files be in the same folder? If yes, then I can simplify opening procedure to selecting 2 files from a list of all ccl files in a particular proposal_id folder.
@rsibille-psi , in a view of #43, would splitting the table into two for nb- and bi- geometries also be fine for ccl compare? yes
I guess, both files will have the same geometry, so all scans will occupy one of the tables only. yes
Another question, will both ccl files be in the same folder? yes
If yes, then I can simplify opening procedure to selecting 2 files from a list of all ccl files in a particular proposal_id folder. yes
@rsibille-psi thank you for your feedback, though I discovered that splitting the table might be more difficult than expected. Maybe I'll return to it later if you still think it significantly improves UX.
Could you also provide an example of data for ccl compare?
thanks!
Could you also provide an example of data for ccl compare?
yes, in experiment 20211326 you may compare ccl files 6966 and 7061
1. ccl integrate
2. param study
3. hdf viewer
gamma
in /entry1/ZEBRA/area_detector2/polar_angle is thegamma_central
(and similarlynu
in /entry1/ZEBRA/area_detector2/tilt_angle). Our resolution depends on the size of the pixel and the distance from the sample to the detector. The sizes of the pixel are stored in /entry1/ZEBRA/area_detector2/x_pixel_size and ../y_pixel_size, these are xscale=0.734 mm in the horizontal direction (gamma) and yscale=1.4809 in the vertical direction (nu) The distance form the sample to the detector is stored in /entry1/ZEBRA/area_detector2/distance. In majority of cases it is 538 mm. The deviation of the gamma_current from the gamma_central in angular units (deg): Atan (N_pixels_from_the_center *pixel size/distance)4. ccl compare