atomica.project.ProjectSettings

class atomica.project.ProjectSettings(sim_start=2000, sim_end=2035, sim_dt=0.25)[source]

Bases: object

Attributes

sim_dt

sim_end

sim_start

tvec

Return simulation time vector

Methods

update_time_vector

Update the project simulation times

property tvec: ndarray

Return simulation time vector

This method uses linspace rather than arange to avoid accumulating numerical errors that prevent integer years aligning exactly.

Returns:

Array of simulation times

update_time_vector(start=None, end=None, dt=None)[source]

Update the project simulation times

Parameters:
  • start (float) – Optionally provide new start year (e.g. ‘2018’)

  • end (float) – Optionally provide new end year (e.g. ‘2035’)

  • dt (float) – Optionally provide new step size, in years (e.g. ‘0.25’ for quarterly steps

Return type:

None