bifacial.pvfactors_timeseries() 类型错误:+= 不支持的操作数类型:'NoneType' 和 'str'

问题描述

我正在尝试运行函数:bifacial.pvfactors_timeseries(),并得到错误:

TypeError: 不支持 += 的操作数类型:'NoneType' 和 'str'。

我不确定我的哪个输入值是错误的。下面你可以看到我是如何编写函数的,然后是所有的输入值。

        bifacial = pvlib.bifacial.pvfactors_timeseries(solar_azimuth=
                                                       interim_weather_df[cf.name_solar_azimuth_column],solar_zenith=
                                                       interim_weather_df[cf.name_solar_zenith_column],surface_azimuth=
                                                       interim_weather_df[cf.name_surface_azimuth_column],surface_tilt=interim_weather_df[cf.name_surface_tilt_column],axis_azimuth=self.axis_azimuth,timestamps=interim_weather_df.index,dni=interim_weather_df[cf.name_dni_column],dhi=interim_weather_df[cf.name_dhi_column],gcr=self.gcr,pvrow_height=model.input_values.pv_row_height,pvrow_width=model.input_values.pv_row_width,albedo=model.input_values.albedo,n_pvrows=3,index_observed_pvrow=1,rho_front_pvrow=0.03,rho_back_pvrow=0.05,horizon_band_angle=15.0)

输入结构截图:

input solar azimuthinput solar_zenithinput surface_azimuthinput surface_tiltinput timestampsinput dniinput dhi

所有其他输入都是 float 和 int。

我还尝试仅使用单个数值作为输入,而不使用 DataFrame,如下所示。我仍然遇到同样的错误。

        bifacial = pvlib.bifacial.pvfactors_timeseries(solar_azimuth=235.7,solar_zenith=75.6,surface_azimuth=270,surface_tilt=72.8,axis_azimuth=180,timestamps=datetime.datetime.strptime('01-01-2021  13:00:00','%d-%m-%Y %H:%M:%S'),dni=29,dhi=275,gcr=0.2,pvrow_height=2,pvrow_width=2,albedo=0.1,horizon_band_angle=15.0)

python 版本:3.8.5 pvlib 版本:0.8.0 光伏因素版本:1.5.0 熊猫版本:1.2.1

有人知道该错误的解决方案吗?非常感谢您的帮助!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)