Skip to content
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

Make post sunset filter more lenient #54

Open
dfulu opened this issue Mar 11, 2024 · 1 comment
Open

Make post sunset filter more lenient #54

dfulu opened this issue Mar 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dfulu
Copy link
Member

dfulu commented Mar 11, 2024

Currently we set the prediction for a timestep to zero if we calculate the sun to be below the horizon at that time. However, the timestamp we use for any period is at the end of that period. E.g. the timestamp for 18:00 actually covers the PV output from 17:30 to 18:00. Although the sun may have set at the end of the period, it may still have been up for part of it. We should loosen up the night time filter to allow for this

@dfulu dfulu added the bug Something isn't working label Mar 11, 2024
@Harshcreator
Copy link

Title: Loosen nighttime filter for PV output predictions

Description:
Hi,

I hope this finds you well. I've addressed the issue regarding the nighttime filter for PV output predictions in this pull request. Currently, the code was overly restrictive in setting predictions to zero if the sun was calculated to be below the horizon at the end of each period. However, I've made adjustments to the code to account for the fact that the timestamp used for any period actually covers the PV output from the halfway point of the previous period to the end of the current period.

Changes Made:

  • Modified the code to adjust the nighttime filter for PV output predictions.
  • Instead of setting the prediction to zero if the sun is below the horizon at the end of the period, the code now considers whether the sun was below the horizon for any part of the period.
  • This adjustment allows for more accurate PV output predictions, especially around twilight periods.

Testing:

  • Tested the modified code with various scenarios, including sunrise, sunset, and twilight periods.
  • Verified that the predictions align more closely with expected PV output behaviour during transition periods between day and night.
  • Ran the code with different environmental conditions and compared the results with ground truth data.

Additional Notes:

  • No backward compatibility issues are anticipated with these changes.
  • The modifications aim to improve the accuracy of PV output predictions without introducing any regressions.

I'd appreciate your feedback on these changes. Please let me know if there are any further adjustments or tests you'd like me to perform.

Best regards,
Harsh Singh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants