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 residual comparison for ExtTofts model & Combine plot functions #39

Merged
merged 4 commits into from
Jun 13, 2017
Merged

Fix residual comparison for ExtTofts model & Combine plot functions #39

merged 4 commits into from
Jun 13, 2017

Conversation

notZaki
Copy link
Contributor

@notZaki notZaki commented Jun 11, 2017

Two changes:

  1. In science.jl. Fixed bug with ExtTofts model. Large regions of the QIBA4 phantom couldn't make it past the residual comparison, so the modelmap and residual map had big patches of zeros. However, the parameter maps still got produced correctly because they were being accepted before the residual comparison even took place - an incorrect behavior providing the correct result.

  2. In validate.jl. I combined analyze4() and analyze6() into a single function because they share a lot of code. This doesn't exactly have any definite advantage, but it does considerably reduce the lines of code, and might make future edits easier. The drawback is that the range and ticks on the colorbars now use default values instead of the pre-defined phantom-specific values they had before.
    Since the code for drawing the maps is similar, it could be wrapped in a function to further reduce the amount of code lines - but these all seem to be incidental changes.

@notZaki notZaki changed the title Combine plot functions Fix residual comparison for ExtTofts model & Combine plot functions Jun 11, 2017
@davidssmith
Copy link
Owner

davidssmith commented Jun 13, 2017

I like this a lot. Currently trying to figure out why the builds are failing.

@davidssmith davidssmith merged commit fec52cc into davidssmith:master Jun 13, 2017
@notZaki notZaki deleted the combinePlotFunctions branch June 14, 2017 20:37
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.

2 participants