Cast max_stepsize in Mesh Adaptive Direct Seach (#526)#527
Conversation
sblelong
commented
Oct 28, 2025
- Explicit cast of MADS' maximum stepsize to match the mesh scaling parameter type
- Unit test of MADS running on a sphere
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #527 +/- ##
=======================================
Coverage 99.78% 99.78%
=======================================
Files 86 86
Lines 9781 9781
=======================================
Hits 9760 9760
Misses 21 21 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
kellertuer
left a comment
There was a problem hiding this comment.
Thanks, I did not know the function oftype! I have just one comment on the code PR itself.
For the failing tests
- please add a small entry to the Changelog.md
- make sure to run the runic code formatter on the code. “Usually” it would report errors here, but for external contributions, that is not the case here, but in the test itself you can also see what went wrong, see https://github.com/JuliaManifolds/Manopt.jl/actions/runs/18887296259/job/53905822587#step:3:201 – you just missed spacing at one keyword it seems :)
|
Thanks a lot for your quick feedback! I was actually trying to figure out how to reach out to you on Slack or Zulip since the failing tests led to some panicking on my side... It is my first PR on a fairly large repo so, thank you for bearing with me. :) I'm working on fixing those two errors. I may have missed something, but I think the contributing guidelines ask to run |
|
Oh, did I miss to update the guidelines, sorry for that! Will check that tomorrow – and fix that if necessary; I'm sure you'll manage, no reason to panic - just keep calm and code on :) |
|
There's absolutely no harm in that, the fact that all files of the repo were modified when applying JuliaFormatter should've been a hint for me that another formatter was in use... Thanks all the more so that it's getting late! Hope those failing tests weren't too much of a disturbance in the evening. I'll take advantage of the remaining sun time I have to fix those issues. |
|
Oh usually the PR fixing an issue would close the issue, now you closed it a bit early, but never mind :) (if you mention in the first comment or somewhen along that this PR closes/fixes #anothernumber then that automatically closes it) |
|
Oops... Sorry again. I feared keeping it open would be confusing since the issue is somehow addressed. But that's one more good practice I'll keep in mind for the future. |
|
It is not wrong, just a bit unusual, for example if this would only fix something half ;) |
|
I did adapt my proposal of the tests above and the tests now also directly use Manifolds.jl 0.11.2, but we could enforce that a bit better by changing the compat entry in Project.toml as well. |
|
Indeed, using Manifolds.jl 0.11.2 solves that. The new tests seem to pass perfectly. |
|
Thanks again. I will include this in the next release :) |
|
My pleasure :) |
* Introduce a vector bundle Newton method * documentation * Code coverage. --------- Co-authored-by: Laura Weigl <Laura.Weigl@uni-bayreuth.de> Co-authored-by: Anton Schiela <anton.schiela@uni-bayreuth.de> Co-authored-by: Hajg Jasa <hajg.jasa@ntnu.no>