'TypeError When using pvfactors_timeseries in pvlib v0.7.1 with pvfactors v.1.5.0

I get the following error (for pvlib v0.7.1 and pvfactors v1.5.0) when using pvfactors_timeseries

TypeError: build() missing 1 required positional argument: 'pvarray'

for this sample code from a previous question:

import pandas as pd
from pvlib.bifacial import (pvfactors_timeseries)   
times = pd.date_range('2021-01-01', '2021-01-02', closed='left', freq='1min',tz=None)
rear_rad = pvfactors_timeseries(
    solar_azimuth=pd.Series(235.7, times),
    solar_zenith=pd.Series(75.6, times),
    surface_azimuth=pd.Series(270.0, times), #cte
    surface_tilt=pd.Series(-72.8, times), #tracker
    axis_azimuth=180.0, #cte
    timestamps=times,
    dni=pd.Series(29.0, times),
    dhi=pd.Series(275.0, times),
    gcr=0.2,
    pvrow_height=2.0,
    pvrow_width=2.0,
    albedo=0.2, #variable mensual
    n_pvrows=3,
    index_observed_pvrow=1,
    rho_front_pvrow=0.03, #reflectividad
    rho_back_pvrow=0.05, #refletividad
    horizon_band_angle=15.0,
    run_parallel_calculations=False
 )

I tried editing line 265 in engine.py from-

report = None if fn_build_report is None else fn_build_report.build(pvarray)

to

report = None if fn_build_report is None else fn_build_report.build(report = None, pvarray = pvarray)

But then I run into another error in bifacial.py on line 166 (pvrow = pvarray.pvrows[1] # use center pvrow):

AttributeError: 'OrderedPVArray' object has no attribute 'pvrows'

I want to know if any of these problems were addressed in versions of pvlib > 0.7.1 or pvfactors > 1.5.0. I am not updating pvlib and pvfactors due to codebase refactoring constraints.

P.S- Running the same code with run_parallel_calculations=True (which is the default) runs indefinitely (> 20mins) with this warning-

ERROR! Session/line number was not unique in database. History logging moved to new session 56


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source