BCNexus_v2.0.0 #12
eliasinul
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
BCNexus_v2.0.0 — 2026-07-19
Modular workflow, full CLEW plotting suite, and a self-contained scenario report.
Backwards compatible:
RunModel.run()and the existing notebook path are unchanged.See CHANGELOG.md for detail.
Calibration Note
sets_n_ratios.pynow skips agricultural land-use modes whosecluster-mean crop yield falls below 1e-4 after calibration. The change removes
OutputActivityRatio coefficients at the 1e-8 to 1e-7 scale from the LP matrix. These
coefficients contributed to a 14 order of magnitude coefficient range that caused the
Gurobi barrier method to stall with sub-optimal termination. The change alters model
structure only for cluster and crop combinations with negligible production potential.
Added
bcnexus/stages.py) + Snakemake/DVC scaffold (workflow_v3/) —resumable, parallel multi-scenario runs.
plot_Water.pymodule and a year-slider nexus Sankey.
bcnexus/vis/palette.py) — one colour per legend entryacross every figure and scenario.
vis/report.py+ template): Inputs and Outputs tabs withsticky C/L/E/W sub-tabs, scenario description, layout/font/dark-mode controls, works
offline, and optional panels for run, solver and constraint diagnostics.
bcnexus/vis/index.py→report/BCNexus_report_v1.html): alanding page plus cascading dropdowns over scenario, timeslices, storage algorithm,
solver and run date, built by parsing the report filenames. Rebuild with
make index;make resultsandmake workflowdo it automatically.(
CLEW_model_map_<scenario>_<date>.html).makeinterface for the whole workflow (make run | solve | workflow | index,make help), with amake.batshim for Windows. Existing environment and legacytargets are unchanged.
AGENTS.md— contract for AI agents and new contributors: layer ownership, thesix-stage pipeline, the plot/palette/template separation, and the rules that keep a
contribution safe (no bulk deletes, no invented data, prescribed inputs are not results).
and an interactive temporal-resolution guide.
Changed
run()split into six composable stages; output paths now deterministic(
run_dir()), timestampruntagremoved from result folders.*ts_csvs_<solver>_<runtag>.datapackage.get_dataframe()→get_df()(alias kept).get_plots()writes the combined report by default (save_individual=False).mark moved to the master index. Reports default to light, the index to dark.
Fixed
intermediate/low-input GAEZ regimes no longer dropped.
DEMTRA/DEMPWRmissing from the sector map);now reconciles exactly with the result CSVs.
str / Patherror in the runtime logger.Pending
include_livestock=Trueoutputs need review.This discussion was created from the release BCNexus_v2.0.0.
All reactions