Open jadball opened 2 months ago
Do you want the check to be (360 + omegastep)
, or is there some other problem with it?
I'll need to double-check with the raw data once I'm back in the office to see if that will be sufficient, but it was slightly over 360 degrees for sure (check Wolfgang's last scanning expt)
The reason the mod360 is in there is for datasets with continuous (e.g. always forward) rotation. If the scan is over by a few degrees, it means some angles get measured twice instead of once. This is more of an intensity normalisation problem rather than a wrong omega bin problem. Omega at 362 degrees and 2 degrees are supposed to be the same projection...?
The problem is that if we go from, say, -181 to 181 degrees, the mod360 is invoked, which forces the omega range to 0-360. This means our omin, omax and omega_for_bins are no longer in agreement with cf.omega which is used later down the line for sinogram histogram generation (top of 2_S3DXRD... .ipynb) for the whole sample mask
Might be better to use dataset.sinohist for whole sample sinograms and fix the problem in there. We had a bunch of data using a "full1" or "f2scan" which was always going forward to be quicker - that case will need testing and debugging again at some point. Especially if we upgrade the huber tower to spin faster.
I'll take a look at the notebooks using a 360 scan as a test dataset and try to use sinohist
going forward
Line 435 here is incorrectly triggered when we collect a 360 degree single-turn scan (often omax - omin is slightly larger than 360)
https://github.com/FABLE-3DXRD/ImageD11/blob/3eb81076c904e43cbe3eeb56024f7aa273869e83/ImageD11/sinograms/dataset.py#L431-L441