nrel.hive.config.global_config
Module Contents
Classes
Typed version of namedtuple. |
- class nrel.hive.config.global_config.GlobalConfig[source]
Bases:
NamedTupleTyped version of namedtuple.
Usage in Python versions >= 3.6:
class Employee(NamedTuple): name: str id: int
This is equivalent to:
Employee = collections.namedtuple('Employee', ['name', 'id'])
The resulting class has an extra __annotations__ attribute, giving a dict that maps field names to types. (The field names are also in the _fields attribute, which is part of the namedtuple API.) Alternative equivalent keyword syntax is also accepted:
Employee = NamedTuple('Employee', name=str, id=int)
In Python versions <= 3.5 use:
Employee = NamedTuple('Employee', [('name', str), ('id', int)])
- property write_outputs
- global_settings_file_path: str
- output_base_directory: str
- local_parallelism: int
- local_parallelism_timeout_sec: int
- log_run: bool
- log_events: bool
- log_states: bool
- log_instructions: bool
- log_kepler: bool
- log_stats: bool
- log_level: str
- log_sim_config: Set[nrel.hive.reporting.reporter.ReportType]
- log_station_capacities: bool
- log_time_step_stats: bool
- log_fleet_time_step_stats: bool
- lazy_file_reading: bool
- wkt_x_y_ordering: bool
- verbose: bool
- classmethod build(config: Dict, global_settings_file_path: str) GlobalConfig[source]
- classmethod from_dict(d: Dict, global_settings_file_path) GlobalConfig[source]