Skip to content

jrob93-patch: deep_coadd save to fits - #227

Merged
jrob93 merged 8 commits into
mainfrom
u/jrob93/2026-10-14/deep-coadd-fits
Oct 30, 2026
Merged

jrob93 merged 8 commits into
mainfrom
u/jrob93/2026-10-14/deep-coadd-fits

Conversation

@jrob93

@jrob93 jrob93 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Quick addition to 202.1 to demo saving a deep_coadd CellCoadd object to fits file using .write()

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jeffcarlin
jeffcarlin self-requested a review October 14, 2026 17:43
@garrethmartin
garrethmartin self-requested a review October 28, 2026 09:10
@@ -74,7 +74,7 @@
"### 1.1. Import packages\n",

@garrethmartin garrethmartin Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #1.    # save_file = "{}/deep_coadd_{}_{}_{}_{}.fits".format(

save_file = os.path.join(userdir, ...) is slightly safer


Reply via ReviewNB

@@ -74,7 +74,7 @@
"### 1.1. Import packages\n",

@garrethmartin garrethmartin Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line #9.    # print("save file: {}".format(save_file))

i think it would be make sense to print the message after you save (e.g. save file -> saved to) so the user knows the cell has actually run and saved a file.


Reply via ReviewNB

@@ -74,7 +74,7 @@
"### 1.1. Import packages\n",

@garrethmartin garrethmartin Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would also maybe remove the comments above so the code actually runs and just delete the file during cleanup.

os.remove(save_file)


Reply via ReviewNB

@garrethmartin garrethmartin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to go after minor comments addressed :)

@jrob93
jrob93 merged commit daacd9f into main Oct 30, 2026
2 checks passed
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