Repository navigation
Restructure: matlab/ folder, packaged data, slimmer repo, more CI - #2
Conversation
- Move STN_Implementation, LSTN_matlab, RTN_Implementation into
matlab/{stn,lstn,rtn} with an overview README (scripts unchanged)
- Move the LSTN slides (11.9 MB) to the slides-lstn-isgt2023 release
- Ship data/ inside the installed package (indflex/_data); previously a
non-editable install could not load plants, prices or the VPP case
- Keep only the factory fleets that are used (5, 200) plus the paper's
2,000-factory case
- Move one-off converters to tools/convert/; update all paths, provenance
headers, README and docs
- CI: build and install the wheel and smoke-test it outside the checkout;
run the four free-solver notebooks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reviewer's GuideData structuresTrim the tracked fleet inputs to the 5-, 200-, and 2,000-factory cases used by tests, notebooks, and the paper.
ImplementationCheck packaged-data discovery and the wheel inclusion configuration together, since the installed package relies on both to load plants, prices, fleets, and VPP data.
Review converter and MATLAB reference path updates together with the relocated MATLAB sources, ensuring the moved scripts and inputs remain usable from their new folders.
ConfigurationChange CI triggers to avoid duplicate main-branch push and pull-request runs, and add wheel-install and notebook execution jobs.
Ignore newly excluded or generated repository artifacts as appropriate after the restructuring.
DocumentationUpdate repository guides, citations, and provenance references for the MATLAB folder move, converter relocation, and release-hosted slides.
Other changesFiles not grouped.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
…runs) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
matlab/: the three original MATLAB folders move intomatlab/{stn,lstn,rtn}, with an overview README that maps each to its Python counterpart. The scripts are unchanged and still run from their own folders.Slides out of the tree: the LSTN slides (pptx 10 MB + pdf 1.4 MB, about 85% of the tracked file size) are now attached to the
slides-lstn-isgt2023release and linked from the README. They remain in git history.Packaging fix:
data/is now bundled into the installed package asindflex/_data. Before this, a non-editablepip installcontained no data, andload_plant(...)failed.Trimmed data: only the factory fleets that are used (5, 200) and the paper's 2,000-factory case are kept.
tools/convert/: the one-off converters move here. All paths, provenance headers, README and docs are updated.CI: a job builds the wheel, installs it, and smoke-tests it outside the checkout. A second job runs notebooks 01, 02, 04 and 05 (03 needs a Gurobi license).
CI: pushes trigger runs only on
main; pull requests are covered bypull_request(no duplicate runs).Test plan
pytest: 42 tests passtools/convert/legacy_data.pyre-run from the new paths: data identical except provenance commentstools/matlab_reference/make_reference.mre-run from the new paths: fixtures byte-identicalmatlab/README.mdanddocs/resolve; notebook 01 executes🤖 Generated with Claude Code
Summary by Sourcery
Restructure the repository and packaging so the original MATLAB code is organized, the installed Python package includes its required data, and CI validates wheels and notebooks.
New Features:
Bug Fixes:
Enhancements:
matlab/hierarchy and move one-off conversion utilities undertools/convert/.CI:
Documentation:
Tests:
Chores: