Repository navigation
Restructure into a tested package and add the browser dashboard - #1
Merged
Merged
Conversation
Replace the flat scripts with a tested package split into climate, analysis, prediction, evidence, charts and reports, exposed through the bee-migration command. - Hold out the most recent years chronologically when scoring models and drop the same-year target change from the features, which leaked the answer into training - Compare temperature with bee abundance in later years for lagged correlations; the previous code compared the same year for every lag - Validate observations at the boundary and report a missing data file instead of silently falling back to simulated data - Consolidate packaging, pytest and ruff configuration in pyproject.toml - Regenerate reports, data and charts with the new pipeline and stop tracking trained model files
Run the package inside the page with Pyodide: a visitor picks the seed, the held-out years and the measurement to forecast, and the study is computed on their machine and drawn as accessible SVG charts with a table view for each. A separate chapter loads observed temperatures from Open-Meteo and bee occurrence counts from GBIF, parsed by the new bee_migration.sources module, and states plainly that record locations follow observers as much as bees.
CI lints and tests the package and the site utilities on pull requests and pushes to develop and main. Pages builds the package into the site and deploys it on pushes to main.
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/with thebee_migrationpackage (climate,analysis,prediction,evidence,charts,reports,sources,web) and thebee-migrationcommand.docs/that runs the package in the browser through Pyodide, plus a chapter with live data from GBIF and Open-Meteo.CIandPagesworkflows and document Git Flow inCONTRIBUTING.md.Behaviour changes worth reviewing
--datafile is an error instead of a silent fallback to simulated data.bee-migration predictrecreates them.Test plan
pytest— 83 tests, 98% coverageruff checkandruff format --checknode --test "tests/web/*.test.mjs"— 20 testsmain