-
Notifications
You must be signed in to change notification settings - Fork 2
GEOPY-2143: ensure backward compatibility of saved ui.json from Analyst 4.5 to 4.6 #211
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
Conversation
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 to have this!
But... what is the fix which make them backward compatible? I thought there was a problem to address beyond having tests.
Also, the legacy ui.json files must be moved under the test folder.
Please see a couple of other questions.
@@ -50,7 +50,7 @@ def test_airborne_tem_1d_fwr_run( | |||
n_lines=n_grid_points, | |||
cell_size=cell_size, | |||
refinement=refinement, | |||
inversion_type="airborne_tem 1d", | |||
inversion_type="airborne tdem 1d", |
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.
question: is it changing back to the legacy inversion type?
or it this one the new one, which was already backward compatibly?
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.
I made this helper function to use the same strings as stored on geoh5, so that the test for the legacy uijson can build the demos directly. These were hardcoded before.
The airborne tdem 1d
is new to 0.3.0, so not part of legacy.
simpeg_drivers-assets/legacy/v0.2.1/direct_current_forward_2d.ui.json
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/0.3.0 #211 +/- ##
=================================================
+ Coverage 90.36% 90.46% +0.09%
=================================================
Files 86 85 -1
Lines 5107 4927 -180
Branches 657 636 -21
=================================================
- Hits 4615 4457 -158
+ Misses 329 308 -21
+ Partials 163 162 -1
🚀 New features to boost your workflow:
|
This test confirms that all legacy (0.2.0) jsons are already compatible with 0.3.0 - at least running defaults with core parameters. We will continue testing going forward to make sure that future changes will preserve the compatibility. |
GEOPY-2143 - ensure backward compatibility of saved ui.json from Analyst 4.5 to 4.6