fix `_get_flats_weights`

4 jobs for rework_flat_field_correction in 2 minutes and 11 seconds (queued for 1 second)