reV.SAM.version_checker.PySamVersionChecker

class PySamVersionChecker(requirement='2')[source]

Bases: object

Check the PySAM version and modify input keys if required.

Parameters:

requirement (str) – PySAM version requirement.

Methods

run(tech, parameters)

Run PySAM version and inputs checker and modify keys to reflect PySAM 2 updates.

Attributes

V2_CORRECTION_KEYS

WIND

pysam_version

Get the PySAM distribution version

property pysam_version

Get the PySAM distribution version

classmethod run(tech, parameters)[source]

Run PySAM version and inputs checker and modify keys to reflect PySAM 2 updates.

Parameters:
  • tech (str) – reV-SAM technology string and key to the V2_CORRECTION_KEYS dict

  • parameters (dict) – SAM input dictionary. Will be checked for valid keys if PySAM version > 2.

Returns:

parameters (dict) – Updated input parameters dictionary