Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Issue/gsp database #47

Merged
merged 19 commits into from
Sep 5, 2022
Merged

Issue/gsp database #47

merged 19 commits into from
Sep 5, 2022

Conversation

peterdudfield
Copy link
Contributor

@peterdudfield peterdudfield commented Sep 2, 2022

Pull Request

Description

get GSP data from database
mainly copied from nowcast_dataset

Fixes #45

How Has This Been Tested?

unittest and in big e2e test

  • Yes

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

@peterdudfield peterdudfield self-assigned this Sep 2, 2022
@peterdudfield peterdudfield marked this pull request as ready for review September 2, 2022 19:18
@codecov-commenter
Copy link

Codecov Report

Merging #47 (f19506e) into main (977db73) will increase coverage by 0.74%.
The diff coverage is 98.21%.

@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
+ Coverage   81.67%   82.41%   +0.74%     
==========================================
  Files          65       67       +2     
  Lines        2276     2372      +96     
==========================================
+ Hits         1859     1955      +96     
  Misses        417      417              
Impacted Files Coverage Δ
ocf_datapipes/load/gsp/database.py 97.67% <97.67%> (ø)
ocf_datapipes/load/__init__.py 76.92% <100.00%> (+1.92%) ⬆️
ocf_datapipes/load/gsp/gsp.py 86.48% <100.00%> (ø)
ocf_datapipes/load/gsp/utils.py 100.00% <100.00%> (ø)
ocf_datapipes/production/power_perceiver.py 100.00% <100.00%> (ø)
...orm/xarray/add_t0idx_and_sample_period_duration.py 100.00% <100.00%> (ø)
ocf_datapipes/utils/eso.py 78.87% <100.00%> (+0.93%) ⬆️
ocf_datapipes/config/model.py 82.45% <0.00%> (+0.87%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@jacobbieker jacobbieker left a comment

Choose a reason for hiding this comment

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

Looks good! Just one minor comment, thanks a ton for doing this!


del gsp_id_to_shape, gsp_pv_power_mw_df
while True:
logger.debug(data_array)
Copy link
Member

Choose a reason for hiding this comment

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

Would we want to just log this once right before the True? Then it wouldn't clog up debug logs by showing up lots of times?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, yea ill remove that

@peterdudfield peterdudfield merged commit 9da51a6 into main Sep 5, 2022
@peterdudfield peterdudfield deleted the issue/gsp-database branch September 5, 2022 14:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

GSP data from db
3 participants