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 issue that occurred when checking for the presence of SED fits in show_fit #243

Merged
merged 3 commits into from
Nov 19, 2024

Conversation

darafferty
Copy link
Collaborator

This PR fixes issue #220. Some cleanup of the code was also done.

@darafferty darafferty requested a review from gmloose November 15, 2024 08:34
@darafferty darafferty self-assigned this Nov 15, 2024
Copy link
Collaborator

@gmloose gmloose left a 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.

Comment on lines +367 to +384
# 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)
Copy link
Collaborator

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?

Copy link
Collaborator Author

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).

@darafferty darafferty merged commit 8ebe228 into master Nov 19, 2024
2 checks passed
@darafferty darafferty deleted the fix_issue_220 branch November 19, 2024 15:26
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