openclimatefix / PVNet

PVnet main repo
MIT License
15 stars 3 forks source link

Transfer batch transformation functions to `ocf_datapipes` #111

Closed dfulu closed 3 months ago

dfulu commented 7 months ago

Transfer the copy_batch_to_device and batch_to_tensor functions from pvnet/data/utils.py to ocf_datapipes. These functions are specific to the NumPyBatch object in datapipes, so I think it makes sense for them to go there

aryanbhosale commented 4 months ago

Transfer the copy_batch_to_device and batch_to_tensor functions from pvnet/data/utils.py to ocf_datapipes. These functions are specific to the NumPyBatch object in datapipes, so I think it makes sense for them to go there Hi @dfulu , I'm unable to find ocf_datapipes. Could you please help me out here?

markus-kreft commented 4 months ago

Hi all,

I have just opened https://github.com/openclimatefix/ocf_datapipes/pull/287. Once discussions on type hints there are done and it is merged, I have a PR ready to make use of the functions.

@aryanbhosale: I started looking into this yesterday and only now saw that you are also working on it. But I would be very happy about feedback on my PR if you are also interested in this issue.

dfulu commented 4 months ago

Hi both, thanks very much for jumping on this!

@aryanbhosale I'm sure you've found ocf_datapipes by now, but here it is anyway: https://github.com/openclimatefix/ocf_datapipes

It looks like the two of you have this handled. Let me know if you have any more questions and please feel free to tag me directly in any pull requests