-
Notifications
You must be signed in to change notification settings - Fork 0
Tests for plot recipes #37
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
base: master
Are you sure you want to change the base?
Conversation
SebastianM-C
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I think we could make it runnable on CI be checking ENV[CI]
test/runtests.jl
Outdated
| Lx, y, z = Lx_slice(joinpath(dir, file), λ, 0) | ||
| @test length(Lx) > 0 | ||
| @test length(Lx) == length(y) == length(z) | ||
| dir = "/mnt/storage/epoch/Wang-Arefiev2020mod/12mtt_0.8w0_l0_MDO" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use the CI env variable to see what path to use. In case we are on CI, we could use the .sdf in the test folder.
|
CI fails because it doesn't have the custom registry added |
Co-authored-by: Sebastian Micluța-Câmpeanu <[email protected]>
| @test length(Lx) > 0 | ||
| @test length(Lx) == length(y) == length(z) | ||
| dir = "/mnt/storage/epoch/Wang-Arefiev2020mod/12mtt_0.8w0_l0_MDO" | ||
| sim = read_simulation(dir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add using SDFResults for this to work
|
CI should work on linux now. On windows there is a problem with adding the registry and on MacOS there is an issue with PyCall |
SebastianM-C
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be good to go with the suggestion
|
@DolineanuMircea We should create some simple simulations which contain the data that we need (like photons or particle weights) and add it for the tests. It shouldn't be larger than the current sdf in the repo. |
No description provided.