Closed alexdewar closed 2 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 81.81%. Comparing base (
a5d47a3
) to head (93d1022
).:exclamation: Current head 93d1022 differs from pull request most recent head df634d9
Please upload reports for the commit df634d9 to get more accurate results.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@ahawkes Diego has made a couple of sensible suggestions about the input file formats here... Are you happy for me to tweak them?
Yes I think that makes sense, subject to the comments above. Note also - there are some one-to-many parameters in the current schema. Maybe split them out as their own table/s? e.g. regions in the process table (allows user to make process only available in some regions), pac in process table (allows the user to specify which commodities are the primary ones for the process - capacity is linked to these - and availability etc - so they are imporatnt!). There are a few more - might end up with a lot of tables!
Interesting... I like the idea of being explicit about things like that -- it makes it easier to catch user errors (and we could provide helpful error messages, e.g. "region FRA is described in regions.csv, but is not listed as a region for process X in processes.toml").
I'm happy to have a look at how best to do implement this in Rust and feed back. I'll open an issue for it
This PR adds the example model files from @ahawkes, which will be needed to tackle #48. Obviously, the existing code will not read in these model files -- they're just there for development.
I've moded the existing input files (which do work with the code) into the
examples/placeholder
folder. The new files are inexamples/simple
.