Skip to content

Simplify & update firefly_client use in Euclid PHZ tutorial#307

Merged
jaladh-singhal merged 2 commits intoCaltech-IPAC:mainfrom
jaladh-singhal:euclid-phz-firefly-improv
May 5, 2026
Merged

Simplify & update firefly_client use in Euclid PHZ tutorial#307
jaladh-singhal merged 2 commits intoCaltech-IPAC:mainfrom
jaladh-singhal:euclid-phz-firefly-improv

Conversation

@jaladh-singhal
Copy link
Copy Markdown
Member

I made these fixes recently when demoing the notebook on Fornax to Euclid HQ folks. Removes use of deprecated methods, attributes.

@jaladh-singhal jaladh-singhal requested a review from bsipocz April 30, 2026 00:18
@jaladh-singhal jaladh-singhal self-assigned this Apr 30, 2026
@jaladh-singhal jaladh-singhal added enhancement New notebook or feature maintenance General maintenance of the content and/or infrastructure content: euclid Content related issues/PRs for notebooks with Euclid relevance labels Apr 30, 2026
Copy link
Copy Markdown
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

Look good, but I have some linking suggestion that you may consider for a follow-up PR that touches all the firefly notebooks.

else:
print("Creating data directory.")
os.mkdir(download_path)
fc = FireflyClient.make_client('https://irsa.ipac.caltech.edu/irsaviewer')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would move this code cell down, right after current line 404. (I like having the narrative first and the see the code that does what the narrative describes)

### Vizualize the FITS image with Firefly

First initialize the client, then set the path to the image, upload it to firefly, load it and align with WCS.
After initializing the client, we can directly use the FITS image file URL to upload it to Firefy.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Unrelated to this PR; but I think we should cross link from firefly using notebooks to a firefly intro notebook. E.g. reading these updates from the POV of an e.g. fornax users of what you mean by "upload", if and how much of data transfer happens between what computers.

So, while all of that narrative would be nice, I don't think that we should repeat it in every notebook, but at minimum we should point to some docs or another notebook that answers those potential questions.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I agree - we have too long text in other irsa-tutorials about initializing or too little text (like in this one). I'll make a ticket to standardize firefly initializing across notebooks and cross-linking a dedicated firefly-initializing notebook we have here: https://caltech-ipac.github.io/firefly_client/usage/initializing-vanilla.html

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

see #310

@jaladh-singhal jaladh-singhal merged commit b01365f into Caltech-IPAC:main May 5, 2026
8 checks passed
@jaladh-singhal jaladh-singhal deleted the euclid-phz-firefly-improv branch May 5, 2026 23:26
github-actions Bot pushed a commit that referenced this pull request May 5, 2026
Simplify & update firefly_client use in Euclid PHZ tutorial b01365f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content: euclid Content related issues/PRs for notebooks with Euclid relevance enhancement New notebook or feature maintenance General maintenance of the content and/or infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants