Simulation
Options
Simulation options
- class farms_core.simulation.options.SimulationOptions(**kwargs)
Bases:
farms_core.options.Options
Simulation options
- duration()
Simulation duraiton
- Return type
float
- classmethod with_clargs(**kwargs)
Create simulation options and consider command-line arguments
- class farms_core.simulation.options.Simulator(value)
Bases:
enum.IntEnum
Argument parser
Parse command line arguments
- farms_core.simulation.parse_args.config_argument_parser()
Argument parser
- Return type
ArgumentParser
- farms_core.simulation.parse_args.config_parse_args()
Parse arguments
- farms_core.simulation.parse_args.positive(value, value_type)
Positive value
- Parameters
value (
Any
) –value_type (
Type
) –
- farms_core.simulation.parse_args.positive_float(value)
Positive float
- Parameters
value (
float
) –
- farms_core.simulation.parse_args.positive_int(value)
Positive int
- Parameters
value (
int
) –