Closed awalter-bnl closed 6 years ago
Thanks. The code looks completely pristine to my (limited) eyes. Can I come over to discuss face-to-face a bit?
I would suggest that we eventually make separate objects describing the processing of the different ROIs of the camera. (I certainly agree we should populate these out of the databroker.) Something very roughly along these lines:
process_dict_low_2theta = {'tag': 'low_2theta', 'ROI': [slice(175, 1609), slice(1:1751)], 'curvature': np.array([0., 0., 0.]), 'bins': None}
process_dict_high_2theta = {'tag': 'high_2theta', 'ROI': [slice(175:1609), slice(1753:3503)], 'curvature': np.array([0., 0., 0.]), 'bins': None}
sure I am happy to discuss face to face, I am still working through the Travis error on this though !-).
Merging #4 into master will increase coverage by
6.42%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #4 +/- ##
==========================================
+ Coverage 43.26% 49.68% +6.42%
==========================================
Files 3 5 +2
Lines 282 318 +36
==========================================
+ Hits 122 158 +36
Misses 160 160
Impacted Files | Coverage Δ | |
---|---|---|
sixtools/preliminary_processing.py | 100% <100%> (ø) |
|
sixtools/tests/test_preliminary_processing.py | 100% <100%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update b5159a3...eda72ea. Read the comment docs.
@mpmdean is this used in your code? If not then I will close the PR, I want to avoid having unused code in the repo.
@awalter-bnl I copied the [slice, slice] structure, but beyond that, I don't plan to include this, so I think it makes sense to close.
There is no longer a plan to use this so closing the PR
This adds a function to extract out a region form the raw data.