-
Notifications
You must be signed in to change notification settings - Fork 4
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
Simplify API by using simulation structure #64
Conversation
make_thickness_video
a29cacc
to
cac0539
Compare
make_thickness_video
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #64 +/- ##
=======================================
Coverage ? 89.07%
=======================================
Files ? 9
Lines ? 412
Branches ? 0
=======================================
Hits ? 367
Misses ? 45
Partials ? 0 ☔ View full report in Codecov by Sentry. |
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.
Nice clean-up. Just a couple of minor comments. Feel free to merge it afterwards!
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.
This makes me think that @facusapienza21 already created a GitHub action which syncs files among repos. We could potentially use that one to automatically sync these files with Sleipnir, so changes are propagated.
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 can open an issue for that and implement it later on, there's no rush :)
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.
Nonetheless, as we discussed, this might be overkill. The plotting test should not be affected by the results of the simulation. In the end, it's just a matrix, so even if the simulation is outdated it should work. The only breaking aspects should come from Sleipnir itself (i.e. changing the structs by adding or removing parameters), and that should be already covered and identified within Sleipnir.
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're right this is completely overkill. The problem with the plotting test is that to instantiate Results
we need an iceflow model which is implemented in Huginn. In order to circumvent this problem I replaced results
by H
in plot_glacier_vid
. In the future we should revert that change once Results
can be instantiated without an iceflow model, see #66
Nice work! Feel free to merge! |
save_everystep
flag to store results of the forward simulationmake_thickness_video
in Sleipnir, cf Improve visualization tools with a video generation Sleipnir.jl#79