Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tests: base oseomosys construction * feat: improvement to base abstraction * feat: add validation for time_defintion * tests: for time_definition * add test_otoole_roundtrip pytest * [SMS-239] cleanup noqa test data (#36) * fix: rm otoole sample data from tests * feat: import utils by name * fix: cleanup some DS store * fix: import utils * Refactor root_validator to model_validator (#37) * tests: otoole_roundtrip * feat: fitler pandas=3. dep warning * tests: roundtrip otoole timedefn * delint * otoole_roundtrip as pytest * fix: rename otoole-csv paths * fix: make long_name and description optional * tests: skip full otoole construction for now * tests: test region construction * feat: make base osemosys data built from args[0] * fix: rm composable assumptions and targets for now * fix: accidental rename * fix: accident rename test case * tests: commodity construction and compatability * feat: begin refactor to /compat * feat: add 'isnumeric' helper util * refactor: defaults to initial import, don't import pydatnic schemas * refactor: defaults and compat * feat: commodity schema * feat: make data construction more flexible * feat: build and test impact construction * tests: impact otoole roundtrip * fix: some cleanup on commodity testing * tests: touchup test-impact * tests: technology construction * feat: otoole compatability for technology * feat: add to defaults * feat: region and impact compat * feat: validation for technology * tests: runspec construction and roundtrip * feat: add defaults for discount rate depreciation method * feat: instantiate RunSpec on load model * feat: add a depreciation_method enum * feat: include reserve margin in commodity and technology defn * feat: otoole compatability for RunSpec and Technology * fix: return 'self' from model_validator(mode='after') * feat: finish RunSpec model * tests: roundtrip and yaml compatability * feat: add data casting for OSeMOSYSData * refactor into composeable OSeMOSYSData class * refactor: move otoole time_defn to compat * feat: test commodity composition * tests: rename composition base test * feat: add dtype to operating mode vars * feat: refactor compose * feat: compose technologies * feat: compose all schema * tests: runspec composition * fix: simplify yaml to start with passing case * feat: load model yaml * fix: create timedefinition from yearparts and dayparts * feat: restore direct dict expression * feat: add string casting for dict keys * feat: cast dict keys to str * fix: delint --------- Co-authored-by: edwardxtg <edwardxtg@gmail.com> Co-authored-by: edwardxtg <71764756+edwardxtg@users.noreply.github.com>
- Loading branch information