Python Forum

Full Version: I need help with Python code to implement this algorithms
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello house , I need help with Python code to implement the following algorithm[Image: znKvQDy]

Attached to this is a link to the algorithm[Image: qJt953K]
Show us your code or do you have no clue how to start?
As first you can make a function to read the PV-data.
I guess you have the data as CSV. There is a built-in Python module called csv to read csv files.
Another function could calculate min and max in one step for one day.
Then you have branching in this diagram, which means there is a if..else block.
Appending data to an array can be done in Python with lists.