Hi Joseph,
The CEC module library is part of the SAM user interface, so is not directly available through PySAM.
It would be easiest to do the analysis you describe using an LK script in SAM rather than PySAM. For more about LK, see
sam.nrel.gov/lk-script.html. For example, this simple LK script reads the current module library item, and then changes it:
module = get('module_name');
outln(module);
set('module_name', 'SunPower SPR-310-WHT-U');
module = get('module_name');
outln(module);
If you really want to do this in PySAM, the relevant Pvsamv1 inputs are the ones that start with "cec_", and are
listed starting here
in the PySAM documentation.
SAM uses a CSV file to store the CEC module parameters. That file is available on GitHub here:
github.com/NREL/SAM/blob/patch/deploy/libraries/CEC%20Modules.csv.
Step 4A in
this sample PySAM script
shows how to assign the Pvsamv1 inputs with data from the CSV file. That script is a bit of a work in progress, but does show how this works.
Best regards,
Paul.