This website requires JavaScript.
9bfe0cc8c5
changed gitlab -> gitea
main
Sven Augustin
2025-07-08 16:05:07 +02:00
7d5a0f7ad8
disable deprecated APIs in NumPy (from before version 1.7) to silence warning
Sven Augustin
2025-07-08 15:48:53 +02:00
157b7bad8c
typo
Sven Augustin
2025-07-08 11:36:03 +02:00
e984b336a0
SPI v2
Sven Augustin
2025-07-08 08:54:35 +02:00
f47e1bbb88
Update addmask.py
augustin_s
2025-05-19 19:30:33 +02:00
1585a1b4a4
Update addmask.py
augustin_s
2025-05-19 19:27:12 +02:00
0793d4e298
Update addmask.py
augustin_s
2025-05-19 17:54:46 +02:00
e596def451
renamed JF06T08V06 -> JF06T08V07
Sven Augustin
2025-01-22 19:28:05 +01:00
9ae4464086
generalized "SPI analysis" from 2 to N ROIs (incl. N=0)
Sven Augustin
2024-12-05 12:23:26 +01:00
b245387d79
renamed: JF06T08V05 -> JF06T08V06
Sven Augustin
2024-11-19 14:05:01 +01:00
4027fcbc67
Merge branch 'refactor' into 'main'
augustin_s
2024-10-12 17:09:09 +02:00
7a57201ca3
fixed dtype of "roi_intensities_normalised" if threshold_value != "NaN"
Sven Augustin
2024-10-03 12:13:39 +02:00
98bbe76936
typo: vmin instead of vmax
Sven Augustin
2024-10-03 11:50:49 +02:00
df17ae536c
numpy arrays do not like to be treated as booleans
Sven Augustin
2024-10-03 11:03:55 +02:00
5bf58d1193
fixed dtype of "roi_intensities"
Sven Augustin
2024-10-03 11:02:24 +02:00
05905d183c
bumped version of JF06 (4 -> 5)
Sven Augustin
2024-09-11 21:36:14 +02:00
f18af38dc6
reordered operations
Sven Augustin
2024-09-04 17:30:43 +02:00
35c50b472f
split updating nmax and checking readiness
Sven Augustin
2024-08-30 18:01:13 +02:00
a65553e13a
removed apply_aggregation check [aggregator cannot be ready if apply_aggregation is False]
Sven Augustin
2024-08-30 17:38:16 +02:00
7a05d8f095
moved aggregator.reset() [this now also resets if aggregation_max wasnt given]
Sven Augustin
2024-08-30 15:56:27 +02:00
4db7f4f8cd
moved "not ready" due to missing aggregation_max into Aggregator
Sven Augustin
2024-08-30 14:53:05 +02:00
7d57d6c5e0
removed unused data argument and numpy import
Sven Augustin
2024-08-30 11:54:10 +02:00
1350093d5a
removed apply_threshold check from calc_aggregation_ready as these are independent operations
Sven Augustin
2024-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 Augustin
2024-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 Augustin
2024-08-29 10:36:31 +02:00
cb79be0a3e
added/use Aggregator.is_ready
Sven Augustin
2024-08-28 10:53:21 +02:00
1e6af40d56
moved calc_apply_threshold out of calc_data, removed special case check
Sven Augustin
2024-08-28 10:39:01 +02:00
b99a32d9d7
renamed raw_data -> raw_image
Sven Augustin
2024-08-28 10:21:32 +02:00
8981eab522
renamed pfdata -> pfimage
Sven Augustin
2024-08-28 10:19:01 +02:00
6ca0ebf945
renamed data -> image
Sven Augustin
2024-08-28 10:16:30 +02:00
f2f871c880
renamed image -> raw_data
Sven Augustin
2024-08-28 10:13:21 +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 Augustin
2024-08-28 10:08:18 +02:00
b1f104a71d
disentangle
Sven Augustin
2024-08-21 15:55:23 +02:00
18d6dd0b7b
consistent naming with the other algos
Sven Augustin
2024-08-20 22:23:36 +02:00
4b01cb0dca
naming; switch order
Sven Augustin
2024-08-20 22:17:56 +02:00
547b2b7fb1
disentangle
Sven Augustin
2024-08-20 22:11:16 +02:00
d3ac74835e
simplified
Sven Augustin
2024-08-19 13:02:36 +02:00
52e7260fb1
added (commented) an alternative idea
Sven Augustin
2024-08-19 12:59:07 +02:00
cea2b0c741
moved random skip logic into separate file, added some comments on how it works
Sven Augustin
2024-08-19 12:41:49 +02:00
17e2aa1096
tried to make logic self-explanatory
Sven Augustin
2024-08-19 12:24:21 +02:00
faa774e4dc
de morgan
Sven Augustin
2024-08-15 10:07:50 +02:00
c8d9473271
breaking this apart a bit more
Sven Augustin
2024-08-15 10:00:02 +02:00
fd2345c611
aggregator changes are in-place
Sven Augustin
2024-08-13 13:48:45 +02:00
e0e9cf02d7
added ignore list
Sven Augustin
2024-08-13 09:52:38 +02:00
d8b4931a28
added/use Aggregator to encapsulate data_summed and n_aggregated_images
Sven Augustin
2024-08-13 09:52:24 +02:00
a8c73bab0f
count correctly: 1, 1, 2, 3, ... -> 0, 1, 2, 3, ...
Sven Augustin
2024-08-12 10:04:10 +02:00
2acf116709
re-use thresh function
Sven Augustin
2024-08-09 19:45:32 +02:00
dcdacf4bdb
re-use function
Sven Augustin
2024-08-09 19:18:06 +02:00
34eb466622
fixed inconsistent returns
Sven Augustin
2024-08-09 17:10:00 +02:00
442a7dab28
moved comments out
Sven Augustin
2024-08-09 15:57:17 +02:00
5f055c8718
flatten the code; early exit
Sven Augustin
2024-08-09 15:54:54 +02:00
2103583aca
moved calc_apply_threshold out of calc_radial_integration
Sven Augustin
2024-08-09 15:41:46 +02:00
48c6bbe7c7
zero is zero
Sven Augustin
2024-08-09 15:04:22 +02:00
f12a736355
simpler logic
Sven Augustin
2024-08-09 14:54:30 +02:00
a7429115d7
the usual todo note
Sven Augustin
2024-08-09 12:56:15 +02:00
03b556d61f
flatten the code; early exit
Sven Augustin
2024-08-09 12:46:00 +02:00
74e73c1247
split into functions
Sven Augustin
2024-08-09 11:33:55 +02:00
2a12864feb
removed line that does nothing (nan has no sign, nan always compares to False -> this never overwrites any element)
Sven Augustin
2024-08-08 16:38:52 +02:00
bfaa80c9d0
reorder
Sven Augustin
2024-08-08 16:30:06 +02:00
93f0702c41
early exit 2
Sven Augustin
2024-08-08 16:09:36 +02:00
a7327ddbf7
early exit 1
Sven Augustin
2024-08-08 16:07:54 +02:00
7987125bf5
some new lines
Sven Augustin
2024-08-08 16:07:08 +02:00
779d1e1d77
moved calculation of force_send_visualisation out of work function
Sven Augustin
2024-08-08 15:40:32 +02:00
f77f109ed2
removed the one case of camelCase
Sven Augustin
2024-08-07 18:27:21 +02:00
474df55969
use the current pid, not the one from the iteration before
Sven Augustin
2024-08-07 17:30:55 +02:00
0914b8d169
removed commented part and reworded printout; todo notes
Sven Augustin
2024-08-07 17:27:42 +02:00
a184e49eee
use that BufferedJSON works for non-existing files
Sven Augustin
2024-08-07 17:05:30 +02:00
8531f0a28d
added BufferedJSON.exists() method, use it in get_time/get_data
Sven Augustin
2024-08-07 17:02:04 +02:00
3b599164fa
file naming
Sven Augustin
2024-08-07 16:42:58 +02:00
bff86898e9
moved json_load to bufjson.py
Sven Augustin
2024-08-07 16:41:33 +02:00
018fa6cf4b
use BufferedJSON
Sven Augustin
2024-08-07 15:27:13 +02:00
9dbd11d657
added BufferedJSON
Sven Augustin
2024-08-06 20:59:14 +02:00
f1373936c0
added BufferedJSON
Sven Augustin
2024-08-06 20:56:56 +02:00
9b2fc0efea
turned utils into folder
Sven Augustin
2024-08-06 20:51:45 +02:00
6639b46afb
order
Sven Augustin
2024-08-06 17:01:02 +02:00
159574f4e8
combined a bit more of the logic
Sven Augustin
2024-08-06 16:37:56 +02:00
9fb9595c83
order
Sven Augustin
2024-08-06 16:07:04 +02:00
68c7bd7866
moved pedestal_name_saved into JFData
Sven Augustin
2024-08-06 15:56:28 +02:00
2e80fc0e6e
moved the other half of ju_stream_adapter code into separate class
Sven Augustin
2024-08-06 15:20:09 +02:00
242ec6ff51
moved one half of ju_stream_adapter code into separate class
Sven Augustin
2024-08-06 14:03:33 +02:00
7b56e45cb6
probably better to limit the cache in size
Sven Augustin
2024-08-05 18:22:36 +02:00
e036e033f9
moved do_radial_integration check inside function for better overview
Sven Augustin
2024-08-05 18:20:35 +02:00
3a63baf909
dont repack center
Sven Augustin
2024-08-05 18:18:46 +02:00
a6af8ee19c
use npmemo
Sven Augustin
2024-08-05 18:15:31 +02:00
58c18d9b8c
added algos/utils folder and npmemo
Sven Augustin
2024-08-05 18:04:26 +02:00
26f41b5383
made radprof helper memoizable
Sven Augustin
2024-08-05 18:03:53 +02:00
45c6d99f7a
forgotten return value
Sven Augustin
2024-08-02 20:28:58 +02:00
fb6ed0d116
worker is always 1, removed it and commented unreachable print outs
Sven Augustin
2024-08-02 20:28:46 +02:00
b2ae7292ab
results is always copied from metadata
Sven Augustin
2024-08-02 19:17:09 +02:00
2903203743
use kwargs defaults
Sven Augustin
2024-08-02 19:09:50 +02:00
2857d6412b
readability
Sven Augustin
2024-08-02 19:02:43 +02:00
8c11dd8f52
get_saturated_pixels does not change data in place, hence no copy is needed; use kwargs defaults
Sven Augustin
2024-08-02 19:01:04 +02:00
88c81a905b
use ndarray.copy consistently
Sven Augustin
2024-08-02 18:50:52 +02:00
68619f1181
rad is already int
Sven Augustin
2024-08-02 17:25:28 +02:00
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
Sven Augustin
2024-08-02 17:23:11 +02:00
ac732cc4b7
easier to read name
Sven Augustin
2024-08-02 17:05:18 +02:00
46308b16a9
function order
Sven Augustin
2024-08-02 16:52:34 +02:00
26e2a3f619
easier to read/distinguish names
Sven Augustin
2024-08-02 16:50:04 +02:00
098146c97b
use ndarray.copy consistently
Sven Augustin
2024-08-02 16:25:16 +02:00
f6c97e9749
added check for pixel_mask_pf being None
Sven Augustin
2024-08-02 16:14:42 +02:00