-
Notifications
You must be signed in to change notification settings - Fork 16
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
Eq analysis tools update #3692
base: feature/eq_analysis_tools
Are you sure you want to change the base?
Eq analysis tools update #3692
Conversation
24325a3
to
f6db784
Compare
f6db784
to
53d9294
Compare
cce55ed
to
69db0c3
Compare
Quality Gate failedFailed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
53d9294
to
64deb3e
Compare
c652c17
to
76f1400
Compare
69db0c3
to
ddc8225
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/eq_analysis_tools #3692 +/- ##
=============================================================
- Coverage 75.20% 74.26% -0.94%
=============================================================
Files 232 232
Lines 27708 27998 +290
=============================================================
- Hits 20838 20793 -45
- Misses 6870 7205 +335 ☔ 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.
Thanks for this, I've done an initial run through as this is getting quite large. Could we get some tests the make the plots you've added?
ddc8225
to
730d865
Compare
76f1400
to
bd84305
Compare
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.
On the whole really cool. I've been through it all once and run the two examples. We can have a hat about any of this that seems no necessarily straight forward.
I've commented on the example for when I would like the style adjusted or added to, it was easier than tracking it down in the code...
@@ -300,17 +306,25 @@ | |||
|
|||
sof = deepcopy(reference_eq) | |||
|
|||
diag_ops = EqDiagnosticOptions( | |||
psi_diff=False, split_psi_plots=False, reference_eq=reference_eq |
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.
split_psi_plots is a bool here but this fails when running the notebook on plotting L742
assert isinstance(ax4, Axes) | ||
|
||
@pytest.mark.parametrize( | ||
"legs_to_plot", [DivLegsToPlot.ALL, DivLegsToPlot.UP, DivLegsToPlot.LW] |
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.
ALL and UP fail for me locally
ALL: AssertionError: assert 2 == 4
UP: One of your chosen equilibria does not have upper_inner legs.
summary_dict = [self._eq.analyse_plasma()] | ||
pd.set_option("display.float_format", "{:.2f}".format) | ||
dataframe = pd.DataFrame(summary_dict).T | ||
dataframe.columns = [self.eq_name] |
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 possibly use tabulate if this is the main use of pandas, let me know and I'll find a snippet
* 🎨 Small cleanup * 🚧 Initial structure
* Create equilibrium comparison plotter class - compare equilibrium object with reference equilibrium - split psi plotting - plotting percentage difference between current and reference equilibrium - plot reference lcfs * work on plots before work to update plot instead of producing new plots * make subplots have the same axes limits * remove unused argument in call to EquilibriumComparisonPlotter class in _minimal_current * Add xz_plot_setup to plot_tools.py * working on updating plot * remove blank line after docstring * trying to update colorbar (from stackexchange) * colorbar updating instead of multiple colorbars * add # noqa: BLE001 to Exception * update typing * pre-commit changes * fix from github comment * 🚨 Few missing imports --------- Co-authored-by: james <[email protected]>
Co-authored-by: je-cook <[email protected]>
Co-authored-by: je-cook <[email protected]>
Co-authored-by: je-cook <[email protected]>
Co-authored-by: je-cook <[email protected]>
Co-authored-by: je-cook <[email protected]>
67f3b20
to
750f145
Compare
bd84305
to
e7e9bea
Compare
Quality Gate passedIssues Measures |
Closes
#3376
Description
Further additions/updates for the eq analysis feature branch.
See examples/equilibria/anaylsis_toolbox_examples.ex.py for how to use.
Checklist
I confirm that I have completed the following checks:
pytest tests --reactor
pre-commit run --from-ref develop --to-ref HEAD
sphinx-build -W documentation/source documentation/build