# Blend ProgramTypes

![](https://459479801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9N5K8lMbAhbyBVgms%2Fuploads%2Fgit-blob-4ce9b9c2c07cf7291396b02f05d047a39234898b%2FBlend_ProgramTypes.png?alt=media)

![](https://459479801-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9N5K8lMbAhbyBVgms%2Fuploads%2Fgit-blob-0e7a75d0ed0e1f2f0de5caa7cc728b10b2f9fe1b%2FBlend_ProgramTypes.png?alt=media) - [\[source code\]](https://github.com/ladybug-tools/honeybee-grasshopper-energy/blob/master/honeybee_grasshopper_energy/src/HB%20Blend%20ProgramTypes.py)

Create a ProgramType object by blending other ProgramTypes together using a weighted average based on program ratios.

## Inputs

* **name**

  Text to set the name for the ProgramType and to be incorporated into a unique ProgramType identifier.&#x20;
* **programs \[Required]**

  A list of ProgramType objects that will be averaged together to make a new ProgramType.&#x20;
* **ratios**

  A list of fractional numbers with the same length as the input programs that sum to 1. These will be used to weight each of the ProgramType objects in the resulting average. If None, the input program objects will be weighted equally. Default: None.&#x20;

## Outputs

* **program**

  A ProgramType object that's a weighted average between the input \_programs.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ladybug.tools/hb-energy-primer/components/0_basicproperties/blend_programtypes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
