uvex_transients.utils.phot_utils.default_chunk_size#

uvex_transients.utils.phot_utils.default_chunk_size(n_draws: int, n_time: int, n_frequency: int) → int[source]#

Choose how many draws to evaluate per step, so that the largest intermediate array is about 32 MB.

Parameters:
  • n_draws (int) – Number of draws.

  • n_time (int) – Sizes of the time and frequency grids.

  • n_frequency (int) – Sizes of the time and frequency grids.

Returns:

Draws per chunk, between 1 and n_draws.

Return type:

int