pyselfi.pool module

Routines related to simulation pools.

class pyselfi.pool.pool(fname, N_target=None)[source]

Bases: object

This class represents a pool of simulations at a given point in parameter space.

Variables
  • fname (str) – filename of the pool to load or create

  • N_target (int, optional) – number of simulations desired in the pool

property N_sims

Number of simulations currently available in the pool

Type

int

add_sim(phi)[source]

Adds a simulation to the pool.

Parameters

phi (array, double, dimension=P) – summaries of the simulation to be added ot the pool

property finished

Whether the number of available simulations is larger than the target number

Type

bool

save()[source]

Saves the pool to its output file.