Skip to content

Do not infer First Solar spectral coefficients for 'Thin Film' modules - #2940

Open
chenyi6758-source wants to merge 3 commits into
pvlib:mainfrom
chenyi6758-source:fix/first-solar-thin-film-no-infer
Open

chenyi6758-source wants to merge 3 commits into
pvlib:mainfrom
chenyi6758-source:fix/first-solar-thin-film-no-infer

Conversation

@chenyi6758-source

Copy link
Copy Markdown
Contributor

Closes #1984

CEC Technology 'Thin Film' is ambiguous -- it may be CdTe, CIGS, or another thin-film type -- but _infer_cell_type maps it to CIGS, so First Solar CdTe modules in the CEC database (e.g. FS_4117_3) silently got CIGS spectral coefficients. At pw=3, AMa=3 the modifier comes out 1.0297 instead of 1.0188 for CdTe.

This follows the direction cwhanse set out on #1984 (Nov 3): do not infer coefficients in this case. PVSystem.first_solar_spectral_loss now raises a ValueError telling the user to set Technology to the actual cell type (e.g. 'CdTe') or supply first_solar_spectral_coefficients explicitly. (The earlier PR #2932 took a name-based approach instead; this PR does not do that.)

Local verification on upstream main c5de586: the FS_4117_3 case now raises ValueError; Technology='CdTe' gives the CdTe modifier and user-supplied coefficients are used as-is; tests/test_pvsystem.py 303 passed, 13 skipped; modelchain spectral tests 9 passed; spectrum mismatch tests 56 passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

First Solar CEC modules are inferred to be CIGS instead of CdTe

1 participant