sampo.generator.config.worker_req#
Overview#
|
Multiplies each of the requirements of their list, scaling the maximum number of resources and volume |
|
Multiplies each of the requirements of their list, scaling only the volume |
|
Function to calculate the scalar for objects depending on the number of boreholes |
|
Function for scaling resource requirements for works dependent on the number of boreholes |
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
Functions#
- sampo.generator.config.worker_req.scale_reqs(req_list: list[sampo.schemas.requirements.WorkerReq], scalar: float, new_name: str | None = None) list[sampo.schemas.requirements.WorkerReq]#
Multiplies each of the requirements of their list, scaling the maximum number of resources and volume
- Parameters:
req_list – list of resource requirements
scalar – scalar to which the requirements are applied
new_name – A new name for the requirements
- Returns:
scaled requirements
- sampo.generator.config.worker_req.mul_volume_reqs(req_list: list[sampo.schemas.requirements.WorkerReq], scalar: float, new_name: str | None = None) list[sampo.schemas.requirements.WorkerReq]#
Multiplies each of the requirements of their list, scaling only the volume
- Parameters:
req_list – list of resource requirements
scalar – scalar to which the requirements are applied
new_name – A new name for the requirements
- Returns:
scaled requirements
- sampo.generator.config.worker_req.get_borehole_volume(borehole_count: int, base: float, float) float#
Function to calculate the scalar for objects depending on the number of boreholes
- Parameters:
borehole_count – number of boreholes on the site
base – base[0] part of the volume independent of the number of boreholes, base[1] part of the volume dependent on the number of boreholes
- Returns:
returns a scalar to calculate the requirements
- sampo.generator.config.worker_req.mul_borehole_volume(req_list: list[sampo.schemas.requirements.WorkerReq], borehole_count: int, base: float, float) list[sampo.schemas.requirements.WorkerReq]#
Function for scaling resource requirements for works dependent on the number of boreholes
- Parameters:
req_list – list of resource requirements
borehole_count – number of boreholes on the site
base – base[0] part of the volume independent of the number of boreholes, base[1] part of the volume dependent on the number of boreholes
- Returns:
scaled requirements
Attributes#
- sampo.generator.config.worker_req.START_PROJECT = []#
- sampo.generator.config.worker_req.END_PROJECT = []#
- sampo.generator.config.worker_req.MIN_ROAD#
- sampo.generator.config.worker_req.ATOMIC_ROAD_LEN = 0.05#
- sampo.generator.config.worker_req.TEMP_ROAD#
- sampo.generator.config.worker_req.MIN_TEMP_ROAD#
- sampo.generator.config.worker_req.FINAL_ROAD#
- sampo.generator.config.worker_req.ENGINEERING_PREPARATION_BASE = (0.44, 0.03)#
- sampo.generator.config.worker_req.ENGINEERING_PREPARATION#
- sampo.generator.config.worker_req.POWER_LINE#
- sampo.generator.config.worker_req.HIGH_POWER_LINE#
- sampo.generator.config.worker_req.PIPE_LINE#
- sampo.generator.config.worker_req.LOOPING#
- sampo.generator.config.worker_req.PIPE_NODE#
- sampo.generator.config.worker_req.METERING_INSTALL#
- sampo.generator.config.worker_req.KTP_NEP_BASE = (0.58, 0.03)#
- sampo.generator.config.worker_req.KTP_NEP#
- sampo.generator.config.worker_req.DRAINAGE_TANK_BASE = (0.3, 0.05)#
- sampo.generator.config.worker_req.DRAINAGE_TANK#
- sampo.generator.config.worker_req.WATER_BLOCK#
- sampo.generator.config.worker_req.AUTOMATION_BLOCK#
- sampo.generator.config.worker_req.BLOCK_DOSAGE#
- sampo.generator.config.worker_req.START_FILTER#
- sampo.generator.config.worker_req.FIREWALL#
- sampo.generator.config.worker_req.BOREHOLE#
- sampo.generator.config.worker_req.PIPE_NETWORK#
- sampo.generator.config.worker_req.POWER_NETWORK#
- sampo.generator.config.worker_req.LIGHT_MAST#
- sampo.generator.config.worker_req.HANDING_STAGE_BASE = (0.66, 0.02)#
- sampo.generator.config.worker_req.HANDING_STAGE#