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
Clean up time #56
Comments
Also consider supporting the 't##' (timestep) notation used in BirdFlow distribution column names and the 'W##' (week) notation used by ebirdst for time labels. The distinction between the two being that a model always starts with timestep 1 where the w indicates week of the year so for a partial year model might not start with 1. |
Also add a new function |
lookup_timestep_series() designed to process user input to other functions like route() and predict(). lookup_season_timesteps() narrowly focused helper for looking up season info. It is called by lookup_timestep_sereis() Updated functions (to use new functions above: lookup_transitions() route() route_migration() Addresses #56, closes #68, fixes #66
- lookup_timestep() is now consistent with ebirdst. - lookup_timestep() now uses breakpoints in $dates. Addresses #56 - get_distr() now uses lookup_timestep() - preprocess_species() uses column names start, midpoint, and end in $dates - more testing
lookup_timestep()
should be used within lookup_transitions() to not duplicate code; and because it's more robust.lookup_timestep()
should be updated as currently it would give bogus results if the model doesn't cover the whole year (see Allow preprocessing part of year #39) but this can't happen until we update the example data (Generate new test dataset #50).lookup_transitions()
has the same problem (but shouldn't after 1).The text was updated successfully, but these errors were encountered: