Tags: PlasmaControl/DESC
Tags
Update mpmath requirement from <=1.4.0,>=1.0.0 to >=1.0.0,<=1.4.1 (#2127 ) Updates the requirements on [mpmath](https://github.com/mpmath/mpmath) to permit the latest version. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/releases">mpmath's">https://github.com/mpmath/mpmath/releases">mpmath's releases</a>.</em></p> <blockquote> <h2>1.4.1</h2> <p>Bug fixes:</p> <ul> <li>Fix test_hexadecimal_with_libc_bulk(), see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/1049">#1049</a">https://redirect.github.com/mpmath/mpmath/issues/1049">#1049</a> (Doug Torrance)</li> <li>Keep available deprecated aliases for mpc/mpf_log() (Sergey B Kirpichev)</li> <li>Use version_file option of setuptools-scm to keep version info, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/1048">#1048</a">https://redirect.github.com/mpmath/mpmath/issues/1048">#1048</a> (Sergey B Kirpichev)</li> <li>Add workaround for test on s390x, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/1061">#1061</a">https://redirect.github.com/mpmath/mpmath/issues/1061">#1061</a> (Sergey B Kirpichev)</li> </ul> <p><strong>Full Changelog</strong>: <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/compare/1.4.0...1.4.1">https://github.com/mpmath/mpmath/compare/1.4.0...1.4.1</a></p">https://github.com/mpmath/mpmath/compare/1.4.0...1.4.1">https://github.com/mpmath/mpmath/compare/1.4.0...1.4.1</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/blob/1.4.1/CHANGES">mpmath's">https://github.com/mpmath/mpmath/blob/1.4.1/CHANGES">mpmath's changelog</a>.</em></p> <blockquote> <p>--1.4.1-- Released March 15, 2026</p> <p>Bug fixes:</p> <ul> <li>Fix test_hexadecimal_with_libc_bulk(), see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/1049">#1049</a">https://redirect.github.com/mpmath/mpmath/issues/1049">#1049</a> (Doug Torrance)</li> <li>Keep available deprecated aliases for mpc/mpf_log() (Sergey B Kirpichev)</li> <li>Use version_file option of setuptools-scm to keep version info, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/1048">#1048</a">https://redirect.github.com/mpmath/mpmath/issues/1048">#1048</a> (Sergey B Kirpichev)</li> <li>Add workaround for test on s390x, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/1061">#1061</a">https://redirect.github.com/mpmath/mpmath/issues/1061">#1061</a> (Sergey B Kirpichev)</li> </ul> <p>--1.4.0-- Released February 23, 2026</p> <p>Features:</p> <ul> <li>Support underscores as digit separators per PEP 515, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/661">#661</a">https://redirect.github.com/mpmath/mpmath/issues/661">#661</a> (Sergey B Kirpichev)</li> <li>Add rationals converter for mpf's, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/666">#666</a">https://redirect.github.com/mpmath/mpmath/issues/666">#666</a> (Sergey B Kirpichev)</li> <li>Rewrite bernpoly/eulerpoly to avoid dependency on bernoulli(1) convention, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/700">#700</a">https://redirect.github.com/mpmath/mpmath/issues/700">#700</a> (Sergey B Kirpichev)</li> <li>Support base kwarg for from_str(), see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/703">#703</a">https://redirect.github.com/mpmath/mpmath/issues/703">#703</a> (Jonathan Warner, Sergey B Kirpichev)</li> <li>Support randmatrix() for mp.iv and mp contexts, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/527">#527</a">https://redirect.github.com/mpmath/mpmath/issues/527">#527</a> (Maximilian Gaukler)</li> <li>Added rank() function for matrices, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/610">#610</a">https://redirect.github.com/mpmath/mpmath/issues/610">#610</a> (Jan-Philipp Hoffmann)</li> <li>Add plus flag to select the B_1 sign convention for bernoulli/bernfrac, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/724">#724</a">https://redirect.github.com/mpmath/mpmath/issues/724">#724</a> (Jeremy Tan Jie Rui, Sergey B Kirpichev)</li> <li>Add mpf.as_integer_ratio() method, support construction of mpf from Decimal objects, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/731">#731</a">https://redirect.github.com/mpmath/mpmath/issues/731">#731</a> (Sergey B Kirpichev)</li> <li>Expose lower/upper_gamma functions, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/740">#740</a">https://redirect.github.com/mpmath/mpmath/issues/740">#740</a> (Sergey B Kirpichev)</li> <li>Support mpc initialization from string, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/743">#743</a">https://redirect.github.com/mpmath/mpmath/issues/743">#743</a> (Sergey B Kirpichev)</li> <li>Support asinh/acosh/atanh in the fp context, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/750">#750</a">https://redirect.github.com/mpmath/mpmath/issues/750">#750</a> (Sergey B Kirpichev)</li> <li>Support binary/octal/hexadecimal string output, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/711">#711</a">https://redirect.github.com/mpmath/mpmath/issues/711">#711</a> (Jonathan Warner, Sergey B Kirpichev)</li> <li>Support pickling for matrices and mpi, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/761">#761</a">https://redirect.github.com/mpmath/mpmath/issues/761">#761</a> (Sergey B Kirpichev)</li> <li>Support matrix.<strong>array</strong>() dunder method, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/767">#767</a">https://redirect.github.com/mpmath/mpmath/issues/767">#767</a> (Sergey B Kirpichev)</li> <li>Support more number syntaxes, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/778">#778</a">https://redirect.github.com/mpmath/mpmath/issues/778">#778</a> (Sergey B Kirpichev)</li> <li>Run mpmath as a module for interactive work, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/773">#773</a">https://redirect.github.com/mpmath/mpmath/issues/773">#773</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/923">#923</a">https://redirect.github.com/mpmath/mpmath/issues/923">#923</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/931">#931</a">https://redirect.github.com/mpmath/mpmath/issues/931">#931</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/936">#936</a">https://redirect.github.com/mpmath/mpmath/issues/936">#936</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/939">#939</a">https://redirect.github.com/mpmath/mpmath/issues/939">#939</a> and <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/954">#954</a">https://redirect.github.com/mpmath/mpmath/issues/954">#954</a> (Sergey B Kirpichev)</li> <li>Add signed option to to_man_exp(), see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/783">#783</a">https://redirect.github.com/mpmath/mpmath/issues/783">#783</a> (Sergey B Kirpichev)</li> <li>Add fp.hypot, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/798">#798</a">https://redirect.github.com/mpmath/mpmath/issues/798">#798</a> (Sergey B Kirpichev)</li> <li>Support inf/nan's in ctx.almosteq(), <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/802">#802</a">https://redirect.github.com/mpmath/mpmath/issues/802">#802</a> (Sergey B Kirpichev)</li> <li>Implement mpf.<strong>format</strong>(), see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/819">#819</a">https://redirect.github.com/mpmath/mpmath/issues/819">#819</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/831">#831</a">https://redirect.github.com/mpmath/mpmath/issues/831">#831</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/850">#850</a">https://redirect.github.com/mpmath/mpmath/issues/850">#850</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/859">#859</a">https://redirect.github.com/mpmath/mpmath/issues/859">#859</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/857">#857</a">https://redirect.github.com/mpmath/mpmath/issues/857">#857</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/862">#862</a">https://redirect.github.com/mpmath/mpmath/issues/862">#862</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/881">#881</a">https://redirect.github.com/mpmath/mpmath/issues/881">#881</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/944">#944</a">https://redirect.github.com/mpmath/mpmath/issues/944">#944</a> and <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/966">#966</a">https://redirect.github.com/mpmath/mpmath/issues/966">#966</a> (Javier Garcia, Sergey B Kirpichev)</li> <li>Support conversion from scalar ndarray's, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/821">#821</a">https://redirect.github.com/mpmath/mpmath/issues/821">#821</a> (Sergey B Kirpichev)</li> <li>Support rounding modes in mpf.<strong>format</strong>, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/823">#823</a">https://redirect.github.com/mpmath/mpmath/issues/823">#823</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/831">#831</a">https://redirect.github.com/mpmath/mpmath/issues/831">#831</a>, <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/834">#834</a">https://redirect.github.com/mpmath/mpmath/issues/834">#834</a> and <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/969">#969</a">https://redirect.github.com/mpmath/mpmath/issues/969">#969</a> (Javier Garcia, Sergey B Kirpichev)</li> <li>Support '%' presentation type for mpf, see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/847">#847</a">https://redirect.github.com/mpmath/mpmath/issues/847">#847</a> (Sergey B Kirpichev)</li> <li>Support gmpy2-like rounding modes in to_str(), see <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/830">#830</a">https://redirect.github.com/mpmath/mpmath/issues/830">#830</a> (Javier Garcia)</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/commit/c1131e2d64abcbb57728ca8a499c920c0c69e67f"><code>c1131e2</code></a">https://github.com/mpmath/mpmath/commit/c1131e2d64abcbb57728ca8a499c920c0c69e67f"><code>c1131e2</code></a> Merge pull request <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/1053">#1053</a">https://redirect.github.com/mpmath/mpmath/issues/1053">#1053</a> from skirpichev/release-1.4.1</li> <li><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/commit/d3d3eb9767e8865b25c42747fe583aeb0d023fe8"><code>d3d3eb9</code></a">https://github.com/mpmath/mpmath/commit/d3d3eb9767e8865b25c42747fe583aeb0d023fe8"><code>d3d3eb9</code></a> Update CHANGES</li> <li><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/commit/629daff497d240fdbbcf75423040b01349a9e57e"><code>629daff</code></a">https://github.com/mpmath/mpmath/commit/629daff497d240fdbbcf75423040b01349a9e57e"><code>629daff</code></a> Add a workaround for test on s390x</li> <li><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/commit/96272f303ad836450c3bb25f3a16813dc2f4ea8e"><code>96272f3</code></a">https://github.com/mpmath/mpmath/commit/96272f303ad836450c3bb25f3a16813dc2f4ea8e"><code>96272f3</code></a> Revert "Add backport action"</li> <li><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/commit/e12948020fb964373d7c75b46c7359699d70722e"><code>e129480</code></a">https://github.com/mpmath/mpmath/commit/e12948020fb964373d7c75b46c7359699d70722e"><code>e129480</code></a> Test frozen package version (<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://redirect.github.com/mpmath/mpmath/issues/1055">#1055</a>)</li">https://redirect.github.com/mpmath/mpmath/issues/1055">#1055</a>)</li> <li><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/commit/1ef88b4fa4092ee0e41b7dd14e179d8afc7200cf"><code>1ef88b4</code></a">https://github.com/mpmath/mpmath/commit/1ef88b4fa4092ee0e41b7dd14e179d8afc7200cf"><code>1ef88b4</code></a> Amend docstring for round_digits()</li> <li><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/commit/650520b3c2807632df1edc1277fda0cb54e298a3"><code>650520b</code></a">https://github.com/mpmath/mpmath/commit/650520b3c2807632df1edc1277fda0cb54e298a3"><code>650520b</code></a> Use version_file option of setuptools-scm to keep version info</li> <li><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/commit/501af4a7c799ebbedf0eade8092797ca6013f0ba"><code>501af4a</code></a">https://github.com/mpmath/mpmath/commit/501af4a7c799ebbedf0eade8092797ca6013f0ba"><code>501af4a</code></a> Keep forever deprecated aliases for mpc/mpf_log()</li> <li><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/commit/6887127ae91a27ee15335e1c4c3cd4f91080d9d0"><code>6887127</code></a">https://github.com/mpmath/mpmath/commit/6887127ae91a27ee15335e1c4c3cd4f91080d9d0"><code>6887127</code></a> Set argtypes for sprintf from ctypes</li> <li><a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/commit/f3e9cf0706b6e3b02a0124e5a367078283a3ce03"><code>f3e9cf0</code></a">https://github.com/mpmath/mpmath/commit/f3e9cf0706b6e3b02a0124e5a367078283a3ce03"><code>f3e9cf0</code></a> Update CHANGES (free-threading support)</li> <li>Additional commits viewable in <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3Ca+href%3D"https://github.com/mpmath/mpmath/compare/1.0.0...1.4.1">compare">https://github.com/mpmath/mpmath/compare/1.0.0...1.4.1">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Add pass through kwargs from plotting to compute (#1915) - Only adds `compute_kwargs` option to "generic" plotting functions `plot_{1d,2d,3d,section,fsa}`, the other ones generally already accept kwargs relevant to their function (eg `plot_boozer_modes`) - No tests yet, as I can't think of any that would be meaningful until #1899 is resolved. Resolves #1352 --------- Co-authored-by: Dario Panici <[email protected]> Co-authored-by: Yigit Gunsur Elmacioglu <[email protected]>
Add `blocked` option to `ProximalProjection` (#1623) This separates the force balance part and objective part of `ProximalProjection` `jac` methods and applies batch/blocked to both of them. Basically, moves the `batched_vectorized` to objective part (but optionally, where previously we were always batching it). Additionally, instead of taking the full jacobian and then applying the matrix vector multiplication (in this case this is exactly equivalent to jvp), replaces it with jvps in proper directions. This reduces the compute time for CPU (not for GPU). This will be useful for concurrently calculating the jacobian of each objective in #1495 - Fixes the bug where `blocked` mode of proximal was not using each sub-objectives `jac_chunk_size` - Adds a lot of code explanations (especially for variable dimensions) - Renames `_unfixed_idx_mat` to `_feasible_tangents` - Adds `_eq_` prefix to some variable names to make it clear that they belong to the `Equilibrium` Resolves #1589 --------- Co-authored-by: Dario Panici <[email protected]> Co-authored-by: Dario Panici <[email protected]>
Fix bug in write_vmec_input for current-constrained equilibria (#1645) vmec code source: https://github.com/hiddenSymmetries/VMEC2000/blob/728af8bd6c796b36a0aa85fe298e507791e57c6e/Sources/LIBSTELL_minimal/profile_functions.f#L154 and verified manually by my checking results btwn VMEC and DESC --------- Co-authored-by: Yigit Gunsur Elmacioglu <[email protected]>
PreviousNext