Skip to main content

retrieve_sam

Function retrieve_sam 

Source
pub fn retrieve_sam(
    name: &str,
) -> Result<Vec<HashMap<String, String>>, Box<dyn Error>>
Expand description

Retrieve a database from the SAM (System Advisor Model) library. Modeled after pvlib.pvsystem.retrieve_sam.

Supported databases:

  • “CEC Inverters”
  • “CEC Modules”

Note: These files are downloaded from the NREL SAM GitHub repository.

§Arguments

  • name - The name of the database to retrieve.

§Returns

A Vector of HashMaps, where each map corresponds to a row (usually an inverter or module) keyed by the column headers.