Skip to content
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

[FIX] mapmri with cvxpy 1.0.15 #1740

Merged
merged 2 commits into from Feb 15, 2019
Merged

Conversation

skoudoro
Copy link
Member

This PR is a workaround to fix our problem with cvxpy 1.0.15 on Mapmri. More details on this issue https://github.com/cvxgrp/cvxpy/issues/672.

I would like to know by the MapMRI expert (@rutgerfick @RafaelNH @arokem @Garyfallidis) if this approximation is ok or not.

Thank you for your feedback

@skoudoro skoudoro changed the title [FIX] mapmri [FIX] mapmri with cvxpy 1.0.15 Feb 14, 2019
@arokem
Copy link
Contributor

arokem commented Feb 14, 2019

Would we still need this if we skip this version of cvxpy and pin to 1.0.14 (as in #1695)?

@skoudoro
Copy link
Member Author

skoudoro commented Feb 14, 2019

I think so, even if we make Travis happy, any new users or if someone works with master and does an update of cvxpy, It will crash

@rutgerfick
Copy link
Contributor

Strange bug indeed.

Instead of arbitrarily setting the minimum lopt to 1e-20, perhaps it's cleaner to solve the problem without the regularization term if lopt == 0, and avoid the bug altogether.

@skoudoro
Copy link
Member Author

Ok, thank you for your feedback @rutgerfick. implemented on 014b57f

@arokem
Copy link
Contributor

arokem commented Feb 14, 2019

+1. Will merge as soon as the CI comes back

@arokem
Copy link
Contributor

arokem commented Feb 14, 2019

Thanks for implementing this!

@codecov-io
Copy link

Codecov Report

Merging #1740 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1740      +/-   ##
==========================================
+ Coverage   84.26%   84.26%   +<.01%     
==========================================
  Files         115      115              
  Lines       13606    13608       +2     
  Branches     2144     2145       +1     
==========================================
+ Hits        11465    11467       +2     
  Misses       1643     1643              
  Partials      498      498
Impacted Files Coverage Δ
dipy/reconst/mapmri.py 90.97% <100%> (+0.02%) ⬆️

@arokem arokem merged commit 04ddc4e into dipy:master Feb 15, 2019
@skoudoro skoudoro deleted the fix-cvxpy-1.0.15 branch February 15, 2019 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants