Exoplanet phase curve#49
Open
arjunsavel wants to merge 6 commits into
Open
Conversation
Contributor
Author
snbianco
suggested changes
Jan 30, 2025
Contributor
There was a problem hiding this comment.
This is a great notebook with some really good science! I think a lot of people will find it helpful. Here are some notes I had exclusively on the code cells:
- There was recently another release of Astroquery (0.4.9) that should have all of the relevant functionality. @ttdu Can we update the version on TIKE's environment?
- The standard order for Python imports is standard library imports, third party imports, and then local imports. I think the only standard library imports are
os,multiprocessing, andconcurrent.futures, so I would move those to the top of the cell and then make the spacing a bit more even. - There are a few places where you are listing parameters and leave the comma at the start of the newline. Better style is to leave it at the end of the previous line.
- Instead of filtering the products to only include obs_ids that contain the TIC ID, you could select for the TIC ID in the query using
targetname=<TIC> - When acquiring lightcurves, I think it would be good to display the results at intermediate steps, i.e., the observations table, the product table, the filtered products, etc.
- Remember to be consistent with whitespace. It's tricky since it has no effect on the code output, but having clean code style will make for a better reader experience. One line of whitespace is usually enough to separate code blocks.
- I like to use
plt.show()at the end of blocks that output plots to avoid outputting the matplotlib object. - Can you add some comments about the variables you define at the beginning of the sinusoid section? Just a quick note on what they represent.
- Remember to remove any code that's commented out.
- The first cell in the MCMC section doesn't have anything to execute. I would just move that comment into the following cell.
- Some lines have semicolons at the end that I think are unneeded.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.