openclimatefix / PVNet

PVnet main repo
MIT License
17 stars 4 forks source link

fix batch to tensor and to device for nested NWP #112

Closed dfulu closed 9 months ago

dfulu commented 9 months ago

The copy_batch_to_device and batch_to_tensor need to be updated for the nested NWP data in the NumpyBatch of datapipes>=2.5

codecov[bot] commented 9 months ago

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (ffbfa04) 57.67% compared to head (de08431) 57.65%. Report is 1 commits behind head on main.

Files Patch % Lines
pvnet/data/utils.py 45.45% 6 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #112 +/- ## ========================================== - Coverage 57.67% 57.65% -0.02% ========================================== Files 26 26 Lines 1701 1705 +4 ========================================== + Hits 981 983 +2 - Misses 720 722 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.