-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a cumulative energy check function #165
Comments
I think inferring whether an energy series is cumulative is unrelated enough from estimating the corresponding interval energy series that they should be implemented in separate functions. I also think properly calculating the interval energy corresponding to a cumulative energy series can sometimes be complicated, or at least more complicated than just I'm also a little unhappy about that magic What module would this function be added to? |
@kanderso-nrel I'm in agreement that we should turn this into two functions: one for determining if stream is cumulative, and one for correcting if stream is cumulative and we don't want it to be. I'm totally open to other suggestions than the .diff() option, which was my quick-and-dirty implementation in fleets. I do like the idea of making that -.5 passable, it was empirically derived after I checked a bunch of data sets but shouldn't be set in stone. I'm thinking this doesn't actually fit in an existing module right now, so we'd have to make one for it. Say energy.py in the quality folder? |
Here's a short example of appropriate treatment of two ways cumulative energy is often reported: https://gist.github.com/kanderso-nrel/672763bb0dc8c23432a2072ba011ce9f |
@kandersolar wanted to pick this back up (only 2 years later, so on time!). My intern @qnguyen345 is helping me out with doing a PR for this and she has a copy of the brute force version I originally put together here in a forked version of pvanalytics: https://github.com/qnguyen345/pvanalytics/blob/cumulative-energy/pvanalytics/quality/energy.py. I know you expressed concern on initial logic, but I can't access the gist above--do you have any recs on improvement? |
Here's the updated link (old one broke because of my username change): https://gist.github.com/kandersolar/672763bb0dc8c23432a2072ba011ce9f |
Many of the data streams I deal with on fleets are AC energy streams, and frequently they're cumulative and always increasing. I need to correct these streams by differencing them to make them look like normal data. I wrote a simple little function to check if the data is always increasing (I have a passable threshold of increasing 95% of the time), and difference the data if so. Here it is:
I'd like to adapt this and add it into PVAnalytics. @cwhanse and @kanderso-nrel what do you think?
The text was updated successfully, but these errors were encountered: