9ed3335021
TEST: use median method for whitefield scale
Lisa Dorofeeva2025-07-14 22:44:03 +02:00
90c0b9cf3d
No newaxis, still extremely slow method for white field scale; TODO: use median instead
Dorofeeva Elizaveta (EXT)
2025-07-14 22:42:05 +02:00
c09bdc5b4e
Explicitly delete cryst_data object after algorithm completion
Lisa Dorofeeva2025-07-14 19:09:52 +02:00
8ffad86f9a
Use bool rather than np.bool to avoid deprecation errors
Lisa Dorofeeva2025-07-14 18:59:27 +02:00
23983ddd6f
Merge pull request 'Streak Finder algorithm for CBD experiment' (#2) from ext-dorofe_e/dap:chapman into main
augustin_s2025-07-14 11:18:06 +02:00
1d88f33cf3
Replace sf_ prefix with cbd_ for streak finder params; We are at SwissFell after all
Lisa Dorofeeva2025-07-11 15:29:51 +02:00
193f531d5c
Correct setting name for mask form file dataset; prepend all strak-finder-specific settings names with sf; Make streak-finder mask optional now that we have mask from file
Lisa Dorofeeva2025-07-11 14:57:20 +02:00
4eb4bb76dc
Ensure single read and no copy for hdf5 data
Lisa Dorofeeva2025-07-11 14:47:20 +02:00
7169ce5acb
We know that detected streaks are list, use np.array
Dorofeeva Elizaveta (EXT)
2025-07-11 11:22:45 +02:00
e3e701a4da
Masking negative values for streak finder should be reflected in mask, not in data
Dorofeeva Elizaveta (EXT)
2025-07-11 11:09:17 +02:00
d8e38df39a
Option to read additional mask from file; Applied on startup only
Lisa Dorofeeva2025-07-11 10:16:05 +02:00
2b17a8bd3a
Configurable negative values handler for streak finder
Lisa Dorofeeva2025-07-11 08:53:18 +02:00
b6df4986de
Further simplify, get rid of redundant brackets
Lisa Dorofeeva2025-07-11 08:19:10 +02:00
1ef801c37e
Add parameter sf_min_hit_streaks to streak finder - Minimum number of discovered streaks to categorize frame as a hit
Lisa Dorofeeva2025-07-11 08:11:42 +02:00
d9ef09a69e
Clean up debug prints; minor cleanup in README
Lisa Dorofeeva2025-07-07 10:05:29 +02:00
8e4301c443
Update README with details of streak finder input and output parameters as well as example settings json
Lisa Dorofeeva2025-07-07 09:56:25 +02:00
c6d10b2fae
Bugfixes, add mask rois to streak finder; Allows masking out bad rois or a part of sensor to speed up
Lisa Dorofeeva2025-07-07 09:00:57 +02:00
ca6ef2453a
Bug fix in streak finder; TODO: mask from file is not refreshed on file change
Dorofeeva Elizaveta (EXT)
2025-07-04 11:57:08 +02:00
ff532af0d6
Chane image in-place if snr selected; Use concentric mask
Lisa Dorofeeva2025-07-04 11:14:32 +02:00
2e066ef3a7
Have mask and whitefield also available as it was outside of streak finder
Lisa Dorofeeva2025-07-04 10:55:04 +02:00
02e15090cd
Add example parameters for streak finder and whitefield correction to README
Lisa Dorofeeva2025-06-25 09:22:14 +02:00
12104e72ef
CBD streak finder: Correct shape of streaks data
Lisa Dorofeeva2025-06-25 08:53:25 +02:00
68b108655b
Ensure wf correctrion to be in-place
Dorofeeva Elizaveta (EXT)
2025-06-24 10:09:04 +02:00
cb2c6d5ab2
Added streak finding and white field correction for convergent-beam diffraction experiments; TODO: cleanup, document streakfinder installation or add to setup
Lisa Dorofeeva2025-06-24 08:13:28 +02:00
35c50b472f
split updating nmax and checking readiness
Sven Augustin2024-08-30 18:01:13 +02:00
a65553e13a
removed apply_aggregation check [aggregator cannot be ready if apply_aggregation is False]
Sven Augustin2024-08-30 17:38:16 +02:00
7a05d8f095
moved aggregator.reset() [this now also resets if aggregation_max wasnt given]
Sven Augustin2024-08-30 15:56:27 +02:00
4db7f4f8cd
moved "not ready" due to missing aggregation_max into Aggregator
Sven Augustin2024-08-30 14:53:05 +02:00
7d57d6c5e0
removed unused data argument and numpy import
Sven Augustin2024-08-30 11:54:10 +02:00
1350093d5a
removed apply_threshold check from calc_aggregation_ready as these are independent operations
Sven Augustin2024-08-30 11:52:35 +02:00
470aa52ff9
use the proper check from JU [this includes checking for the gain now, which probably was ommitted before since the gain file rarely changes and always exists]
Sven Augustin2024-08-29 10:56:46 +02:00
cc0113507b
removed unreachable special case for raw data (uint16) reaching aggregation [adapter.process calls handler.process with conversion=handler.can_convert(), which checks if gain and pedestal are truthy; with conversion, the dtype is float32 or int32; if handler.pedestal_file is falsy, the image is skipped upon receive -> special case can never trigger]
Sven Augustin2024-08-29 10:36:31 +02:00
d0c1621109
consistency: removed special case that sends the raw data image instead of the processed image data [special case triggered if apply_aggregation and apply_threshold are off, but both can still be not applied if the respective parameters (aggregation_max, threshold_min, threshold_max) are not given, which would send data]
Sven Augustin2024-08-28 10:08:18 +02:00