Skip to content

Commit

Permalink
Merge pull request #36 from Matze2/numpy2-fixes
Browse files Browse the repository at this point in the history
Fix to support NumPy 2
  • Loading branch information
StefaE authored Nov 3, 2024
2 parents b381964 + 0dd606c commit 922c3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PVForecast/dwdforecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def parseKML(self):
valStr = valStrArray[i].text.replace('-', 'nan')
valArr = valStr.split()
valArr = np.array(valArr)
valArr = np.asfarray(valArr, float)
valArr = np.asarray(valArr, dtype=float)
weatherData.update({ param : valArr })
self.DataTable = pd.DataFrame(weatherData, index=pd.DatetimeIndex(PeriodEnd))
self.DataTable.index.name = 'PeriodEnd' # Time is in UTC
Expand Down

0 comments on commit 922c3bc

Please sign in to comment.