-
Notifications
You must be signed in to change notification settings - Fork 44
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
Draft: cube_fitting.ipynb #71
Conversation
Draft notebook for spectral cube fitting. Fit all the spaxels in a Spitzer IRS spectral cube |
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.
@PatrickOgle - thanks for this! Mostly looks ok for a draft notebook, but one immediate issue I noticed: you have executed notebook cells. As the guide points out, this is problematic because it leads to notebooks being very large and taking up space in the repo. Can you clear your outputs, commit, and then squash into one commit? (I can show you how to do that if you don't know how.)
Other issue is that the tests did not get triggered. I think this is because one of the settings was wrong on the configuration page that I have access to and have now updated. But we will find out when we push up another commit.
@eteq I did restart the kernel and save before submitting the notebook, and it appeared to clear the output to the cells. Not sure what went wrong here... I may need some help with this. |
I also just realized from looking at it that there's no |
@PatrickOgle This is a great draft! I have lots of comments for future development, but none of them are blockers for merging this PR. Among the comments:
|
In cell 8, it's not obvious to me why you need to initialize to lists:
|
In cell 11, you initialize |
For a future version, it might be nice to have a cell that illustrates putting a contour map (e.g of a spectral feature) on top of an image. |
Hi Harry,
Thanks for your helpful feedback. I will tackle it after I get the notebook through the basic checks. I am not sure why it runs in my environment but not in the git PR.
Is this an official 'science review? Just wondering for bookkeeping purposes.
A couple of quick answers:
I tried, but spectral-cube can't handle the non-standard format of my dataset (created from Spitzer data by CUBISM). Besides, astropy.io.fits seems sufficient to read the data. lmfit has some nice functionality, but I will be happy to
use astropy fitting if it can replicate what I need.
…-Patrick
|
@PatrickOgle Yes, I think this can serve as the science review for this PR. |
@PatrickOgle The issue seemed to be that you were serializing and deserializing models. This is okay, but the |
@eteq Can you resolve your change request and 'pending reviewer'? |
Thanks @PatrickOgle @hcferguson, and @nmearl , this is all looking good now! One lesson learned is we need a smooth way to somehow integrate feedback like @hcferguson's that isn't going in the notebook itself but is I "to do for the next iteration". For now I'm going to create a separate github issue for that, but we may instead want to look into things more tightly coupled to the notebook itself: e.g. "hidden" cells, etc. |
No description provided.