railtoolkit / TrainRuns.jl

TrainRun.jl will take a user-defined train and a path as an input for a train run calculation. It can calculate the train run as a time-efficient or energy-efficient operation mode. The results can then be used within the Julia environment.
https://railtoolkit.org/projects/trainruns.jl
ISC License
5 stars 2 forks source link

loading railtoolkit schema via LazyArtifacts #81

Closed kaat0 closed 2 months ago

kaat0 commented 2 months ago

Path() and Train() validate the data in the constructor with JsonSchema. Introduced two new functions load() and get_schema(), to change from hard-coded JsonSchema to using the JsonSchema via LazyArtifacts.

Path() and Train() now use load() for a file. load() returns a validated Dict() according to the files specified JsonSchema (which has to be registered beforehand in the Artifacts.toml file).

Dependencies will also be needed for issue #11.

codecov[bot] commented 2 months ago

Welcome to Codecov :tada:

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered :open_umbrella:

kaat0 commented 2 months ago

Currently two targets fail: