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 the max_steps_gap parameter and missing timestamp functionality in select_time_slice() #107

Open
dfulu opened this issue Dec 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@dfulu
Copy link
Member

dfulu commented Dec 23, 2024

In the slice_datasets_by_time() function, the call to select_time_slice() used for the satellite data uses max_steps_gap=2 - see here.

The value of max_steps_gap is entirely ignored in this function. This parameter is a carry over from ocf_datapipes and the slicing logic which uses this setting has not been ported across yet. Quite possibly we will never want to use this functionality since this was intended for use only in a production setting where data might be missing. We do this in the app now instead. During training, since we filter to t0 times where no satellite data may be missing, our current usage would never hit this anyway. We do not have the functionality in our t0 filtering to allow any missing time steps, so we should never need this.

I suggest we:

  • Strip out this parameter and the placeholder _sel_fillinterp() function which it was intended to be used with.
  • Plus remove the _sel_fillnan() function and the fill_selection parameter. I don't think we use these or will ever use these for training.
@dfulu dfulu added the bug Something isn't working label Dec 23, 2024
@SophiaLi20
Copy link
Contributor

you can see if your suggestion will work by making the fork repository and than commit your suggested changes on that if it work you can open a PR @dfulu

pvprajwal added a commit to pvprajwal/ocf-data-sampler that referenced this issue Jan 9, 2025
# Pull Request

## Description

This PR removes `max_steps_gap` and `fill_selection` parameters and `_sel_fillinterp()` and `_sel_fillnan()` as they are no longer required for training.

Fixes openclimatefix#107

## Checklist:

- [.] My code follows [OCF's coding style guidelines](https://github.com/openclimatefix/.github/blob/main/coding_style.md)
- [.] 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
pvprajwal added a commit to pvprajwal/ocf-data-sampler that referenced this issue Jan 9, 2025
# Pull Request

## Description

This PR removes `max_steps_gap` and `fill_selection` parameters and `_sel_fillinterp()` and `_sel_fillnan()` as they are no longer required for training.

Fixes openclimatefix#107

## Checklist:

- [.] My code follows [OCF's coding style guidelines](https://github.com/openclimatefix/.github/blob/main/coding_style.md)
- [.] 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
@pvprajwal pvprajwal mentioned this issue Jan 9, 2025
5 tasks
@RupeshMangalam21
Copy link
Contributor

Hi, @dfulu is this issue still relevant? If yes, i'd like to take a look and possibly resolve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants