Commit Graph

264 Commits

Author SHA1 Message Date
abae2288e7 Final cleanup 2025-07-15 08:50:35 +02:00
118b97acfb Restore mask ROI fuctionality; Concentric streaks filter in a function; Cleanup 2025-07-15 08:35:08 +02:00
Dorofeeva Elizaveta (EXT)
ad0752aa92 Correct region mask 2025-07-14 23:35:26 +02:00
b2cc1e27a4 TEST: crop data AND mask 2025-07-14 23:10:46 +02:00
d30adf3e14 TEST: try return crop roi; cleanup 2025-07-14 23:04:17 +02:00
9ed3335021 TEST: use median method for whitefield scale 2025-07-14 22:44:03 +02:00
Dorofeeva Elizaveta (EXT)
90c0b9cf3d No newaxis, still extremely slow method for white field scale; TODO: use median instead 2025-07-14 22:42:05 +02:00
Dorofeeva Elizaveta (EXT)
f1828cb4b5 True divide 2025-07-14 22:26:58 +02:00
77d3ff9293 TEST scale whitefield 2025-07-14 22:07:08 +02:00
Dorofeeva Elizaveta (EXT)
e3efd82b2c Bugfixes, no leak visible, TODO: cleanup, wf norm, crop, maybe mask roi 2025-07-14 21:25:59 +02:00
901587db79 TEST: try to get rid of data containers in streak finder package; make it simple 2025-07-14 20:58:20 +02:00
2ea2129d5b Try to get rid of cryst data entirely 2025-07-14 19:40:28 +02:00
6ebaf0ae6a Try cleanup cryst data, track memory usage 2025-07-14 19:29:29 +02:00
c09bdc5b4e Explicitly delete cryst_data object after algorithm completion 2025-07-14 19:09:52 +02:00
8ffad86f9a Use bool rather than np.bool to avoid deprecation errors 2025-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
Reviewed-on: ext-dorofe_e/dap#1
Merged here: #2
2025-07-14 11:18:06 +02:00
1d88f33cf3 Replace sf_ prefix with cbd_ for streak finder params; We are at SwissFell after all 2025-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 2025-07-11 14:57:20 +02:00
4eb4bb76dc Ensure single read and no copy for hdf5 data 2025-07-11 14:47:20 +02:00
Dorofeeva Elizaveta (EXT)
7169ce5acb We know that detected streaks are list, use np.array 2025-07-11 11:22:45 +02:00
Dorofeeva Elizaveta (EXT)
e3e701a4da Masking negative values for streak finder should be reflected in mask, not in data 2025-07-11 11:09:17 +02:00
d8e38df39a Option to read additional mask from file; Applied on startup only 2025-07-11 10:16:05 +02:00
e756b70655 Credits 2025-07-11 08:57:24 +02:00
2b17a8bd3a Configurable negative values handler for streak finder 2025-07-11 08:53:18 +02:00
b6df4986de Further simplify, get rid of redundant brackets 2025-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 2025-07-11 08:11:42 +02:00
c5ba140c71 Format import 2025-07-11 08:08:22 +02:00
152b2342d7 Simplify results dictionary updates in streak finder 2025-07-11 08:06:29 +02:00
6f2fa2d419 Merge branch 'chapman' of https://gitea.psi.ch/ext-dorofe_e/dap into chapman 2025-07-11 07:59:27 +02:00
094371a63b Simplify converting frame to stack for CrystData 2025-07-11 07:59:19 +02:00
626f324eff Merge branch 'main' into chapman 2025-07-10 18:52:10 +02:00
a304ff1d9d Added crop roi to readme 2025-07-10 10:33:38 +02:00
Dorofeeva Elizaveta (EXT)
2bd3e875e3 Bug fix in streaks coordintaes shift 2025-07-10 10:26:38 +02:00
b3ec993f2f Swap x/t for crop roi for cryst data 2025-07-10 10:08:37 +02:00
84b6ef3c52 For concentric streaks detection, take into account crop region shift 2025-07-10 10:07:19 +02:00
ea28335ae0 For final streak finder result, take into account crop region shift 2025-07-10 09:33:36 +02:00
Dorofeeva Elizaveta (EXT)
969ac8ffcf First step towards running algorithm on cropped image 2025-07-10 09:26:17 +02:00
da8141b687 convert numpy bool_ scalar to python bool 2025-07-08 18:58:47 +02:00
9bfe0cc8c5 changed gitlab -> gitea 2025-07-08 16:05:15 +02:00
7d5a0f7ad8 disable deprecated APIs in NumPy (from before version 1.7) to silence warning 2025-07-08 15:52:37 +02:00
157b7bad8c typo 2025-07-08 11:36:03 +02:00
e984b336a0 SPI v2 2025-07-08 08:54:35 +02:00
d9ef09a69e Clean up debug prints; minor cleanup in README 2025-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 2025-07-07 09:56:25 +02:00
76b8d957dd Code cleanup; TODO: update README 2025-07-07 09:28:41 +02:00
00024ffd5d Merge branch 'chapman' of https://gitea.psi.ch/ext-dorofe_e/dap into chapman 2025-07-07 09:03:20 +02:00
c6d10b2fae Bugfixes, add mask rois to streak finder; Allows masking out bad rois or a part of sensor to speed up 2025-07-07 09:00:57 +02:00
Dorofeeva Elizaveta (EXT)
ca6ef2453a Bug fix in streak finder; TODO: mask from file is not refreshed on file change 2025-07-04 11:57:08 +02:00
ff532af0d6 Chane image in-place if snr selected; Use concentric mask 2025-07-04 11:14:32 +02:00
2e066ef3a7 Have mask and whitefield also available as it was outside of streak finder 2025-07-04 10:55:04 +02:00