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

Remove properties #16

Merged
merged 12 commits into from
Feb 29, 2024
Merged

Remove properties #16

merged 12 commits into from
Feb 29, 2024

Conversation

dfulu
Copy link
Member

@dfulu dfulu commented Feb 29, 2024

Pull Request

Description

Similar to openclimatefix/PVNet#149

I've been having trouble instantiating models with hydra because of these properties. It is simpler to remove them and replace them with attributes instead.

Also removing some requirements which aren't used by the summation model

Copy link

codecov bot commented Feb 29, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 59.53%. Comparing base (714ff80) to head (9eab67b).

Files Patch % Lines
pvnet_summation/models/base_model.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   59.36%   59.53%   +0.17%     
==========================================
  Files           6        6              
  Lines         470      472       +2     
==========================================
+ Hits          279      281       +2     
  Misses        191      191              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dfulu dfulu requested a review from peterdudfield February 29, 2024 16:50
@dfulu dfulu merged commit fd32406 into main Feb 29, 2024
5 checks passed
@dfulu dfulu deleted the remove_properties branch February 29, 2024 17:03
else:
self.num_output_features = self.forecast_len_30

if self.pvnet_model.use_quantile_regression:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whats the difference between these two, could you add a comment

@@ -1,6 +1,5 @@
ocf_datapipes==3.2.*
pvnet==2.6.*
ocf_ml_metrics==0.0.*
pvnet==3.0.*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worth pinning a bit more? or maybe not. Perhaps fine like this, but in pvnet_app could be fully pinned

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeh I'd prefer to pin in pvnet_app. I think thats better?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants