We just recently started having a problem where we're getting the following error:
Traceback (most recent call last):
File "/home/capehart/pysamtest.py", line 16, in <module>
system_model.execute(0)
Exception: pvwattsv7 execution error.
exec fail(pvwattsv7): first two header lines must have same number of columns
We assumed that it was related to
github.com/NREL/SAM/issues/1186 because an erroneous tmy.csv download could reasonably kick off that error, but when we look at the files we have, they do appear to have the same number of columns. Here is a minimal sample code causing the error.
from PySAM import Pvwattsv7 as Pv
system_model = Pv.new()
#system_model.SolarResource.solar_resource_file = "./nsrdb_36.0_-115.24_psm3-tmy_60_tmy.csv"
system_model.SolarResource.solar_resource_file = "./nsrdb_38.81_-77.26_psm3-tmy_60_tmy_zpexne.csv"
system_model.SystemDesign.array_type = 1
system_model.SystemDesign.azimuth = 180
system_model.SystemDesign.inv_eff = 99
system_model.SystemDesign.losses = 14.075660688264469
system_model.SystemDesign.module_type = 0
system_model.SystemDesign.system_capacity = 8
system_model.SystemDesign.tilt = 20
system_model.Lifetime.system_use_lifetime_output = 0
system_model.AdjustmentFactors.constant = 0
I'm attaching two sample tmy csv's.
Does anyone have any guidance for us on this? This is affecting customers and I'm keen to get it remedied promptly.
Thanks!
AC