Commit Graph

180 Commits

Author SHA1 Message Date
augustin_s 7d57d6c5e0 removed unused data argument and numpy import 2024-08-30 11:54:10 +02:00
augustin_s 1350093d5a removed apply_threshold check from calc_aggregation_ready as these are independent operations 2024-08-30 11:52:35 +02:00
augustin_s 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] 2024-08-29 10:56:46 +02:00
augustin_s 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] 2024-08-29 10:37:04 +02:00
augustin_s cb79be0a3e added/use Aggregator.is_ready 2024-08-28 10:53:21 +02:00
augustin_s 1e6af40d56 moved calc_apply_threshold out of calc_data, removed special case check 2024-08-28 10:39:01 +02:00
augustin_s b99a32d9d7 renamed raw_data -> raw_image 2024-08-28 10:21:32 +02:00
augustin_s 8981eab522 renamed pfdata -> pfimage 2024-08-28 10:19:01 +02:00
augustin_s 6ca0ebf945 renamed data -> image 2024-08-28 10:16:30 +02:00
augustin_s f2f871c880 renamed image -> raw_data 2024-08-28 10:13:21 +02:00
augustin_s 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] 2024-08-28 10:08:18 +02:00
augustin_s b1f104a71d disentangle 2024-08-21 15:55:23 +02:00
augustin_s 18d6dd0b7b consistent naming with the other algos 2024-08-20 22:23:36 +02:00
augustin_s 4b01cb0dca naming; switch order 2024-08-20 22:17:56 +02:00
augustin_s 547b2b7fb1 disentangle 2024-08-20 22:11:16 +02:00
augustin_s d3ac74835e simplified 2024-08-19 13:02:36 +02:00
augustin_s 52e7260fb1 added (commented) an alternative idea 2024-08-19 12:59:07 +02:00
augustin_s cea2b0c741 moved random skip logic into separate file, added some comments on how it works 2024-08-19 12:41:49 +02:00
augustin_s 17e2aa1096 tried to make logic self-explanatory 2024-08-19 12:24:21 +02:00
augustin_s faa774e4dc de morgan 2024-08-15 10:07:50 +02:00
augustin_s c8d9473271 breaking this apart a bit more 2024-08-15 10:00:02 +02:00
augustin_s fd2345c611 aggregator changes are in-place 2024-08-13 13:48:45 +02:00
augustin_s e0e9cf02d7 added ignore list 2024-08-13 09:52:38 +02:00
augustin_s d8b4931a28 added/use Aggregator to encapsulate data_summed and n_aggregated_images 2024-08-13 09:52:24 +02:00
augustin_s a8c73bab0f count correctly: 1, 1, 2, 3, ... -> 0, 1, 2, 3, ... 2024-08-12 10:04:10 +02:00
augustin_s 2acf116709 re-use thresh function 2024-08-09 19:48:48 +02:00
augustin_s dcdacf4bdb re-use function 2024-08-09 19:18:06 +02:00
augustin_s 34eb466622 fixed inconsistent returns 2024-08-09 17:10:00 +02:00
augustin_s 442a7dab28 moved comments out 2024-08-09 15:57:17 +02:00
augustin_s 5f055c8718 flatten the code; early exit 2024-08-09 15:54:54 +02:00
augustin_s 2103583aca moved calc_apply_threshold out of calc_radial_integration 2024-08-09 15:41:46 +02:00
augustin_s 48c6bbe7c7 zero is zero 2024-08-09 15:04:22 +02:00
augustin_s f12a736355 simpler logic 2024-08-09 14:54:30 +02:00
augustin_s a7429115d7 the usual todo note 2024-08-09 12:56:15 +02:00
augustin_s 03b556d61f flatten the code; early exit 2024-08-09 12:46:00 +02:00
augustin_s 74e73c1247 split into functions 2024-08-09 11:33:55 +02:00
augustin_s 2a12864feb removed line that does nothing (nan has no sign, nan always compares to False -> this never overwrites any element) 2024-08-08 16:38:52 +02:00
augustin_s bfaa80c9d0 reorder 2024-08-08 16:30:06 +02:00
augustin_s 93f0702c41 early exit 2 2024-08-08 16:09:36 +02:00
augustin_s a7327ddbf7 early exit 1 2024-08-08 16:07:54 +02:00
augustin_s 7987125bf5 some new lines 2024-08-08 16:07:08 +02:00
augustin_s 779d1e1d77 moved calculation of force_send_visualisation out of work function 2024-08-08 15:40:32 +02:00
augustin_s f77f109ed2 removed the one case of camelCase 2024-08-07 18:27:21 +02:00
augustin_s 474df55969 use the current pid, not the one from the iteration before 2024-08-07 17:30:55 +02:00
augustin_s 0914b8d169 removed commented part and reworded printout; todo notes 2024-08-07 17:27:42 +02:00
augustin_s a184e49eee use that BufferedJSON works for non-existing files 2024-08-07 17:05:30 +02:00
augustin_s 8531f0a28d added BufferedJSON.exists() method, use it in get_time/get_data 2024-08-07 17:02:04 +02:00
augustin_s 3b599164fa file naming 2024-08-07 16:42:58 +02:00
augustin_s bff86898e9 moved json_load to bufjson.py 2024-08-07 16:41:33 +02:00
augustin_s 018fa6cf4b use BufferedJSON 2024-08-07 15:27:13 +02:00