• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

shimming-toolbox / shimming-toolbox / 13526392470
90%

Build:
DEFAULT BRANCH: master
Ran 25 Feb 2025 04:51PM UTC
Jobs 5
Files 52
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Feb 2025 04:44PM UTC coverage: 89.797% (+0.2%) from 89.589%
13526392470

push

github

web-flow
Adding Gradient-based optimizer (BFGS) and pseudo huber loss function  (#515)

* adding the pseudo huber cost functon to the existing lsq_optimizer

* modifiying the b0_shim cli to include added opt_criteria and opt_method

* correct formatting

* adding a gradient based optmiziation method and pseudo huber minimization criteria

* adjusting the max character per line

* minor modification on formatting

* adding the gradient optimizer to list of supported optimizers

* optimizing the way delta is calculated for pseudo huber for whole brain shimming

* updating the gradient_optimizer to inherit from lsq_optimizer

* removing redundant init function in gradient optimizer

* Update shimmingtoolbox/cli/b0shim.py

Co-authored-by: Alex Dastous <47249340+po09i@users.noreply.github.com>

* removing constraint from gradient optimizer

* modifying help text in the CLI

* Apply suggestions from code review

modifying some typos.

Co-authored-by: Alex Dastous <47249340+po09i@users.noreply.github.com>

* removed the redundant codes

* Rename gradient optimizer to bfgs, squash bugs

* Refactor bound generation for real-time shimming

* Add BFGS RT PMU optimizer

* Fix test

* Remove comments

* Fig bug with signal recovery opt if using a single slice fmap

* Fix ps_huber bug

---------

Co-authored-by: Alex Dastous <47249340+po09i@users.noreply.github.com>
Co-authored-by: Alexandre D'Astous <po09i@hotmail.com>

71 of 78 new or added lines in 5 files covered. (91.03%)

2 existing lines in 2 files now uncovered.

5404 of 6018 relevant lines covered (89.8%)

4.49 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
95.48
7.46% shimming-toolbox/shimmingtoolbox/optimizer/lsq_optimizer.py
1
88.57
-0.71% shimming-toolbox/shimmingtoolbox/simulate/numerical_model.py
2
87.73
0.06% shimming-toolbox/shimmingtoolbox/shim/sequencer.py
3
86.36
shimming-toolbox/shimmingtoolbox/optimizer/bfgs_optimizer.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.48
7.46% shimming-toolbox/shimmingtoolbox/optimizer/lsq_optimizer.py
1
72.73
-1.52% shimming-toolbox/shimmingtoolbox/optimizer/optimizer_utils.py
Jobs
ID Job ID Ran Files Coverage
1 macos-13-Python-3.10 - 13526392470.1 25 Feb 2025 05:06PM UTC 52
89.8
GitHub Action Run
2 macos-15-Python-3.10 - 13526392470.2 25 Feb 2025 05:06PM UTC 52
89.8
GitHub Action Run
3 ubuntu-24.04-Python-3.10 - 13526392470.3 25 Feb 2025 05:06PM UTC 52
89.8
GitHub Action Run
4 macos-14-Python-3.10 - 13526392470.4 25 Feb 2025 05:06PM UTC 52
89.8
GitHub Action Run
5 ubuntu-22.04-Python-3.10 - 13526392470.5 25 Feb 2025 05:06PM UTC 52
89.8
GitHub Action Run
Source Files on build 13526392470
  • Tree
  • List 52
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 868c72de on github
  • Prev Build on master (#13338525057)
  • Next Build on master (#13572653078)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc