Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading railtoolkit schema via LazyArtifacts #81

Merged
merged 6 commits into from
Jul 3, 2024
Merged

loading railtoolkit schema via LazyArtifacts #81

merged 6 commits into from
Jul 3, 2024

Conversation

kaat0
Copy link
Collaborator

@kaat0 kaat0 commented Jun 30, 2024

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.

@kaat0 kaat0 added this to the TrainRuns.jl 2.0 milestone Jun 30, 2024
@kaat0 kaat0 requested a review from gwehrle June 30, 2024 19:23
@kaat0 kaat0 self-assigned this Jun 30, 2024
src/constructors.jl Outdated Show resolved Hide resolved
src/constructors.jl Outdated Show resolved Hide resolved
test/artifact_schema_loading.jl Outdated Show resolved Hide resolved
test/artifact_schema_loading.jl Outdated Show resolved Hide resolved
test/artifact_schema_loading.jl Outdated Show resolved Hide resolved
test/highlevel_test.jl Show resolved Hide resolved
Copy link
Collaborator

@gwehrle gwehrle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty nice!
I had some small adjustments. Please also run JuliaFormatter ;) Also some method descriptions are out of date.

test/file_loading.jl Outdated Show resolved Hide resolved
test/runtests.jl Outdated Show resolved Hide resolved
test/artifact_schema_loading.jl Show resolved Hide resolved
Artifacts.toml Outdated Show resolved Hide resolved
src/constructors.jl Outdated Show resolved Hide resolved
src/constructors.jl Outdated Show resolved Hide resolved
test/file_loading.jl Outdated Show resolved Hide resolved
# Conflicts:
#	test/highlevel_test.jl
#	test/runtests.jl
@kaat0 kaat0 force-pushed the redesign branch 3 times, most recently from c4abcb5 to 5a09430 Compare July 3, 2024 11:06
Copy link

codecov bot commented Jul 3, 2024

Welcome to Codecov 🎉

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 ☂️

@kaat0
Copy link
Collaborator Author

kaat0 commented Jul 3, 2024

Currently two targets fail:

  • 32bit architecture (x86)
  • long term support (lts) julia with 1.6

@kaat0 kaat0 mentioned this pull request Jul 3, 2024
@kaat0 kaat0 merged commit 7ca94cb into main Jul 3, 2024
11 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants