You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ndarrays can sometimes be used for array inputs, but seem to cause errors when used within dictionary inputs.
For instance, from test_ResourceTools.py:
# get a solar_resource_data dictionary
solar = str(Path(__file__).parent / "blythe_ca_33.617773_-114.588261_psmv3_60_tmy.csv")
data = tools.TMY_CSV_to_solar_data(solar)
# each irradiance input is a list
assert (data['dn'][7] == 262)
# turning into ndarray will cause errors
data['gh'] = np.array(data['gh'])
model = pvsam.default("FlatPlatePVNone")
model.SolarResource.solar_resource_data = data
> model.execute()
E TypeError: only size-1 arrays can be converted to Python scalars
The text was updated successfully, but these errors were encountered:
ndarrays
can sometimes be used for array inputs, but seem to cause errors when used within dictionary inputs.For instance, from test_ResourceTools.py:
The text was updated successfully, but these errors were encountered: