-
Notifications
You must be signed in to change notification settings - Fork 34
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
Data shift algorithm #142
Data shift algorithm #142
Conversation
* v0.1.1 Release (pvlib#132) * change pypi classifier from pre-alpha to beta * remove unnecessary docs/requirements.txt * whatsnew v0.1.1 * include 0.1.1 in whatsnew index * link zenodo in readme * Added clipping time series example for Sphinx documentation. * added sphinx documentation + examples for running the clipping mask. * fixed pep8 formatting errors. * added a new whatsnew rst file for version 0.1.2 * removed close plot to visualize in sphinx. * removed trailing whitespace. * added tight layout for plot sizing. * Updated the docs based on @kanderso-nrel's recs. * fixed pep8 warning. * removed trailing whitespace-pep8 issue. * Added placeholder scripts for each function for Sphinx documentation. * added sphinx module for completeness score. * Update docs/examples/clipping.py Co-authored-by: Cliff Hansen <[email protected]> * Update docs/examples/clipping.py Co-authored-by: Cliff Hansen <[email protected]> * added each of the python scripts for detecting stale data, interpolated data, and check for daily data completeness. * updated the interpolated-periods documentation * cleaning up doc strings. * updated the naming conventions of the sphinx docs. * fixed pep8 error on stale data periods docs. * made updates to the Sphinx docs based on kanderso-nrel's feedback. * fixed pep8 errors. * Edited some of the language in the sphinx doc comments. * Added pv-terms json. * added the documentation files for hampel, tukey, and zscore outlier detection. * update the documentation to include separate data files for each of the different issues, to avoid further confusion. * updated the interpolated data docs to pull the correct csv. * More docstring cleanup. * Updated outlier code to use the new outlier csv file. * updated the outliers routine to handle varying indices. * Docstring cleaning. * made updates to the hovertext and the _round edits per @kanderso-nrel's comments * updated diff to round on docstring per @kanderso-nrel's comment. * updated the whatsnew doc with the outliers documentation. * updated the hovertext info. * updated the routine with the bug fix for whatsnew, and removed the initial graphing. * added prints to visualize the imported data in example docs. * Update docs/whatsnew/0.1.2.rst Co-authored-by: Kevin Anderson <[email protected]> * added new commenting based on @cwhanse's recommendations. * fixed improper spelling in comments * Day night masking sphinx documentation (pvlib#139) * update the day-night masking example. * update the day-night masking routine. * added the SERF east data for running the day-night mask examples. * added the day-night masking routine. * Added section for comparing day-night mask to PVlib sunrise-sunset times. * added separate printouts for sunrise and sunset time comparisons. * added vertical lines for sunrise + sunset in plots * update the routine to remove hardcoded file name. * added update to the whatsnew file. * removed a newline to see if we could get git actions to work. * Made updates to documentation based on @kanderso-nrel's recommendations. * Update docs/examples/day-night-masking.py Co-authored-by: Cliff Hansen <[email protected]> * Removed default kwargs for pvlib SPA sunrise-sunset function. * Updating the commenting. * fixed pep8 line length Co-authored-by: Perry <[email protected]> Co-authored-by: Cliff Hansen <[email protected]> * Irradiance sphinx documentation (pvlib#140) * added initial files for all of the irradiance documentation (need to edit). * added RMIS example data for irradiance Sphinx documentation. * added the new qcrad function. * update the examples for both qcrad functions. * added qcrad-limits documentation. * ensured outputs for all irradiance functions in examples. * added plotting functionality for some of the examples. * added graphics for all of the irradiance documentation. * added new line at end of file to stop pep8 failure. * Clean up of doc strings for irradiance documentation. * Fixed the docstring PEP8 error. * Update docs/examples/clearsky-limits-irradiance.py Co-authored-by: Kevin Anderson <[email protected]> * Update docs/examples/clearsky-limits-irradiance.py Co-authored-by: Kevin Anderson <[email protected]> * Update docs/examples/clearsky-limits-irradiance.py Co-authored-by: Kevin Anderson <[email protected]> * Update docs/examples/clearsky-limits-irradiance.py Co-authored-by: Kevin Anderson <[email protected]> * Update docs/examples/qcrad-limits-irradiance.py Co-authored-by: Kevin Anderson <[email protected]> * Update docs/examples/qcrad-limits-irradiance.py Co-authored-by: Kevin Anderson <[email protected]> * Update docs/examples/qcrad-consistency-irradiance.py Co-authored-by: Kevin Anderson <[email protected]> * Update docs/examples/qcrad-consistency-irradiance.py Co-authored-by: Kevin Anderson <[email protected]> * Removed 'sampled' reference from docstring when describing data * changed py:func to py:meth in docstring * Updated the routine to calculate extraterrestrial radition as dni_extra for check_irradiance_limits_qcrad() function. * Renamed the routine Clearsky Limits for Daily Insolation * removed pep8 issues * added the documentation to the whatsnew file. * Update docs/examples/clearsky-limits-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * Update docs/examples/clearsky-limits-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * Update docs/examples/qcrad-consistency-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * Update docs/examples/qcrad-consistency-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * Update docs/examples/qcrad-consistency-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * Update docs/examples/qcrad-limits-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * Update docs/examples/daily-insolation-limits-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * Update docs/examples/clearsky-limits-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * added day-night mask to clearsky-limits-irradiance documentation * removed hardcoded path! * Update docs/examples/daily-insolation-limits-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * Update docs/examples/daily-insolation-limits-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * Update docs/examples/daily-insolation-limits-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * switched the ordering of parameters in ) per @cwhanse's request. * rearranged the order of inputs for irradiance_consistency_qcrad function in unit test. * Update docs/examples/qcrad-consistency-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * updated clearsky-limits-irradiance example to comment on Ineichen model performance * Update docs/examples/qcrad-limits-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * Update docs/examples/qcrad-consistency-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> * Update docs/examples/daily-insolation-limits-irradiance.py Co-authored-by: Cliff Hansen <[email protected]> Co-authored-by: Perry <[email protected]> Co-authored-by: Kevin Anderson <[email protected]> Co-authored-by: Cliff Hansen <[email protected]> Co-authored-by: Kevin Anderson <[email protected]> Co-authored-by: Perry <[email protected]> Co-authored-by: Cliff Hansen <[email protected]>
This PR was accidentally merged and reverted in pvanalytics/master. Please see here for original PR:#124 |
@kanderso-nrel and @cwhanse apologies for the issues with this PR--I accidentally merged and reverted this yesterday so all of the commenting is in PR #124. However, this PR looks pretty good at this point, and is ready for final review. Hoping to get this merged here in the next week before I do a poster presentation on it at PVSC. Thanks! |
Updated PR number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't expect to want to make any more comments, so hitting "approve" now :)
pvanalytics/quality/data_shifts.py
Outdated
(time_series >= time_series.quantile(.99))) | ||
# Filter out the associated data by masking | ||
time_series = time_series[(~stale_mask) & (~negative_mask) & | ||
(~quantile_mask)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mention this not because I think it's a worthwhile change, but just because my brain can't help but notice it and perhaps it is interesting: the logic of (~A) & (~B) & (~C)
can be reduced from five operations to three with ~(A | B | C)
via De Morgan's laws. But again I would prioritize readability over the very marginal performance difference here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kperrynrel. Apologies for the delayed review.
Co-authored-by: Cliff Hansen <[email protected]>
Co-authored-by: Cliff Hansen <[email protected]>
Co-authored-by: Cliff Hansen <[email protected]>
Co-authored-by: Cliff Hansen <[email protected]>
Co-authored-by: Cliff Hansen <[email protected]>
Co-authored-by: Cliff Hansen <[email protected]>
Co-authored-by: Cliff Hansen <[email protected]>
Description
Thank you for your contribution! Please provide a brief description of the problem and the proposed solution or new feature (if not already fully described in a linked issue)
Checklist
The following items must be addressed before the code can be merged.
Please don't hesitate to ask for help if you are unsure of how to accomplish any of the items.
You are free to remove any checklist items that do not apply or add additional items that are
not on this list
docs/api.rst
in
docs/whatsnew
for all changes. Includes link to the GitHub Issue with
:issue:`num`
or this Pull Request with
:pull:`num`
. Includes contributor nameand/or GitHub username (link with
:ghuser:`user`
).