Commit Graph

107 Commits

Author SHA1 Message Date
augustin_s bbc58ca5e6 need to also store the norm between iterations; added some comments on why the center/rad/norm are reset and where; r_min/r_max need to be re-calclated every time (or also stored); added todo note 2024-08-02 17:23:11 +02:00
augustin_s ac732cc4b7 easier to read name 2024-08-02 17:05:18 +02:00
augustin_s 46308b16a9 function order 2024-08-02 16:52:34 +02:00
augustin_s 26e2a3f619 easier to read/distinguish names 2024-08-02 16:50:04 +02:00
augustin_s 098146c97b use ndarray.copy consistently 2024-08-02 16:25:16 +02:00
augustin_s f6c97e9749 added check for pixel_mask_pf being None 2024-08-02 16:14:42 +02:00
augustin_s eb39550983 added todo note 2024-08-02 16:14:24 +02:00
augustin_s ca3b42a797 use the boolean pixel_mask_pf 2024-08-02 16:11:57 +02:00
augustin_s 88f881fffd removed keep_pixels and use boolean array pixel_mask_pf instead 2024-08-02 16:01:13 +02:00
augustin_s 8cd2f07d80 leave pixel_mask_pf as boolean array (int8 is only needed for peakfinder_8, where it is type casted anyway) 2024-08-02 15:54:31 +02:00
augustin_s de3ea150b2 all mask comparisons are for equality 2024-08-02 15:49:47 +02:00
augustin_s dd7eda4834 renamed variable pfdata to data 2024-08-02 15:11:13 +02:00
augustin_s 062cc6055c use the same validation logic as in other cases 2024-08-02 15:10:52 +02:00
augustin_s d9d79f3e87 more pythonic check 2024-08-02 14:55:37 +02:00
augustin_s af3eb6853b naming consistency 2024-08-02 14:36:35 +02:00
augustin_s 6dccb5bbfd only apply additional mask if the mask has changed 2024-08-02 14:30:19 +02:00
augustin_s 092479c52d cleaned up comment 2024-08-02 14:23:06 +02:00
augustin_s d8d984f5a3 read detector_name only where it is needed 2024-08-02 14:12:29 +02:00
augustin_s 19f1c8e375 condensed logic 2024-08-02 14:05:05 +02:00
augustin_s 87a79a265c naming consistency 2024-08-02 13:55:14 +02:00
augustin_s e5fc7b2750 cleanup 2024-08-02 13:53:25 +02:00
augustin_s 0d06b7b5ed removed commented code for old beamtime 2024-08-02 13:44:54 +02:00
augustin_s bf7f62adff moved masking pixels out of work function 2024-08-02 13:26:02 +02:00
augustin_s 6af0166f07 added todo notes 2024-08-02 13:16:09 +02:00
augustin_s 1402b08060 only copy if there are really in-place changes to be done 2024-08-02 13:12:30 +02:00
augustin_s 61b1d55a9e added notes on in place changes 2024-08-02 13:10:06 +02:00
augustin_s d9b2ae4ac2 use the same validation logic as in other cases 2024-08-02 12:39:45 +02:00
augustin_s b1b92e4b52 simpler logic 2024-08-02 12:28:09 +02:00
augustin_s 40c0a08d7c added todo notes 2024-08-02 12:18:56 +02:00
augustin_s e9d187c712 renamed variable pfdata to data 2024-08-02 12:15:19 +02:00
augustin_s a690654343 moved thresholding out of work function 2024-08-02 12:14:27 +02:00
augustin_s 53d2d965d9 forgotten results argument 2024-08-02 12:11:19 +02:00
augustin_s 92149d0614 moved do_* checks inside function for better overview 2024-08-02 12:01:01 +02:00
augustin_s a34db9287e isort 2024-08-01 09:19:49 +02:00
augustin_s 2facda5d07 comments 2024-08-01 09:16:56 +02:00
augustin_s 3924abcba4 comments, todo note 2024-08-01 09:16:40 +02:00
augustin_s ac8967611d use the same validation logic as in other cases 2024-08-01 09:05:43 +02:00
augustin_s 1af3e9c3ec added todo notes about TBD logic changes 2024-08-01 09:02:58 +02:00
augustin_s 7ea32d2a4d spaces 2024-07-31 19:43:07 +02:00
augustin_s 596a4e7e0a less convoluted 2024-07-31 19:42:59 +02:00
augustin_s 851a186538 readability 2024-07-31 17:50:40 +02:00
augustin_s 1c129bc5be removed useless copy (seems unlikely that peakfinder_8 changes the mask AND astype copies anyway unless explicity disabled) 2024-07-31 17:22:05 +02:00
augustin_s 41ff6c3204 renamed data_copy_1 -> data 2024-07-31 11:23:44 +02:00
augustin_s 7662f8604d naming, cleanup 2024-07-31 11:21:03 +02:00
augustin_s 55a719fa6c removed useless copy/conversion 2024-07-31 11:16:20 +02:00
augustin_s a834d23f42 typos 2024-07-31 11:12:35 +02:00
augustin_s abeab715dd consistent naming 2024-07-31 11:12:10 +02:00
augustin_s a25bd23b67 cleaned/restructured 2024-07-31 11:09:46 +02:00
augustin_s 1db20f8b82 moved additional checks inside function 2024-07-30 22:23:28 +02:00
augustin_s 12e008aeba moved additional checks inside function 2024-07-30 21:25:30 +02:00