Skip to content

Commit

Permalink
removed annoying warning from volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Carver committed Nov 22, 2023
1 parent 9b81968 commit eefc4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sysproduction/data/volumes.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ def get_smoothed_volume_ignoring_old_data(
return 0.0

smoothed_recent_volumes = recent_volumes.ewm(span=span).mean()
final_volume = smoothed_recent_volumes[-1]
final_volume = smoothed_recent_volumes.iloc[-1]

return final_volume

0 comments on commit eefc4e0

Please sign in to comment.