p2_releases

Attributes

base_path

n_parallel

initial_time_to_release

release_duration

release_dt

nt

spreading_duration

inputs_path

run_path

bin_path

simulation_paths

simulation_path

parallel_simulations

Functions

batched(→ list)

Split a list into batches of size n.

Module Contents

p2_releases.batched(lst: Iterable, n: int) list

Split a list into batches of size n.

Parameters:
  • lst (Iterable) – list, tuple or any iterable to be splitted

  • n (int) – number of elements per batch

Returns:

list of batches

Return type:

list

p2_releases.base_path
p2_releases.n_parallel = 10
p2_releases.initial_time_to_release
p2_releases.release_duration
p2_releases.release_dt
p2_releases.nt
p2_releases.spreading_duration
p2_releases.inputs_path
p2_releases.run_path
p2_releases.bin_path
p2_releases.simulation_paths = []
p2_releases.simulation_path
p2_releases.parallel_simulations