-
Notifications
You must be signed in to change notification settings - Fork 24
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 issue that occurred when checking for the presence of SED fits in show_fit #243
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just one remark.
# if i == index_first_waveplot: | ||
# for j in range(len(j_with_gaus)): | ||
# cmd = 'ax' + str(j+i+1) + ' = pl.subplot(' + str(numx) + \ | ||
# ', ' + str(numy) + ', ' + str(j+i+1) + ', sharex=ax1, '+\ | ||
# 'sharey=ax1)' | ||
# exec(cmd) | ||
# pl.title('Pyramidal Sources for\nWavelet Scale J = ' + | ||
# str(j_with_gaus[j])) | ||
# for pyr in img.pyrsrcs: | ||
# for iisl, isl in enumerate(pyr.islands): | ||
# jj = pyr.jlevels[iisl] | ||
# jindx = j_with_gaus.index(jj) | ||
# col = colours[pyr.pyr_id % 6] | ||
# ind = N.where(~isl.mask_active) | ||
# cmd = "ax" + str(jindx + index_first_waveplot + 1) + \ | ||
# ".plot(ind[0]+isl.origin[0], "\ | ||
# "ind[1]+isl.origin[1], '.', color=col)" | ||
# exec(cmd) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to keep this code while it's commented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, just to make it easier to add the functionality in case we decide to. I must say though that that is probably quite unlikely, as I've never heard anyone express an interest in the pyramidal source stuff (and I think it would be a fair bit of work to get it all working).
This PR fixes issue #220. Some cleanup of the code was also done.