Closed peterdudfield closed 3 months ago
Ok so I don't know why this test didn't trip up the previous merge, it should have (when I roll back to the versions at merge locally, it happens as well), but here's what I found out: the problem is that me adding the new keys to ocf_datapipes/ocf_datapipes/batch/batches.py somehow messes with the right batch keys getting assigned to the right tensors from pre-saved test batches. This data was supposed to have this key: satellite_t0_idx, which would've been fine. I bet if I go comment out the new keys in the failing PR it will pass this test
Yep that 100% on me, I stuck new keys in the middle of an enumerated class. The test is fine
No problem @AUdaltsova, it happens.
Yea we have had this problem before with Enums. Something to think about in the future for ocf_data_samples
- https://github.com/openclimatefix/ocf-data-sampler/issues/7
probably a few options
I'd probably be tempted to do 2., but up to you
@peterdudfield yes I thought the same https://github.com/openclimatefix/ocf_datapipes/pull/351