Description
Describe the bug
Some First Solar modules are incorrectly inferred to be CIGS instead of CdTe. This is because the CEC database we currently include in pvlib lists these modules as "Thin Film", which pvlib.pvsystem.Array
maps to CIGS:
pvlib-python/pvlib/pvsystem.py
Lines 1024 to 1031 in 923e025
To Reproduce
import pvlib
cec_modules = pvlib.pvsystem.retrieve_sam('cecmod')
fslr_series_4 = cec_modules['First_Solar__Inc__FS_4117_3']
array = pvlib.pvsystem.Array(pvlib.pvsystem.FixedMount(), module_parameters=fslr_series_4)
print(array._infer_cell_type()) # shows cigs instead of cdte
That means that ModelChains using the first solar spectral correction model will incorrectly use CIGS parameters instead of CdTe parameters for these modules.
Expected behavior
First Solar modules should be inferred as CdTe, not CIGS.
Versions:
pvlib.__version__
: 0.10.3
Additional context
These modules are still listed as Thin Film
in the latest version of the CEC table from SAM: https://github.com/NREL/SAM/blob/patch/deploy/libraries/CEC%20Modules.csv, so updating our table won't fix this problem.