Skip to content

SPHEREx PSF notebook update using ePSf - #364

Draft
afaisst wants to merge 5 commits into
mainfrom
spherexpsf-update-faisst
Draft

SPHEREx PSF notebook update using ePSf#364
afaisst wants to merge 5 commits into
mainfrom
spherexpsf-update-faisst

Conversation

@afaisst

@afaisst afaisst commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

update to use of new ePSF.
Currently, data is not public, so the notebook is run on local files.

Leaving this as a draft PR until the data is public so it's not accidentally merged before then.

@afaisst
afaisst requested a review from troyraen August 3, 2026 22:20
@afaisst afaisst self-assigned this Aug 3, 2026
@troyraen
troyraen requested a review from jkrick August 3, 2026 22:31

@troyraen troyraen 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.

I skimmed through it and left a few comments below.

Comment thread tutorials/spherex/spherex_psf.md Outdated
Comment thread tutorials/spherex/spherex_psf.md Outdated
Comment thread tutorials/spherex/spherex_psf.md Outdated
Comment thread tutorials/spherex/spherex_psf.md Outdated

psf_cube_plane = tab[0]["zone_id"]
distance_min = tab[0]["distance"]
# Not sure why this was necessary

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.

We should try to understand this and put a more informative comment here. I can help with that if needed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think this is just to convert them to floats.
According to chatGPT, it suggests to just remove the comment and replace it with something like

# Convert to Python floats (accepts ints and NumPy scalar types).

Alternatively, we could do the test:

try:
    x0 = float(x0)
    y0 = float(y0)
except (TypeError, ValueError) as err:
    raise TypeError("x0 and y0 must be real numbers.") from err

What do you think? For now I just did option 1 (remove comment and replace it)

Comment thread tutorials/spherex/spherex_psf.md Outdated
Comment on lines +604 to +606
```{code-cell} ipython3

```

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.

Suggested change
```{code-cell} ipython3
```

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

not sure what's the difference?

@troyraen troyraen added maintenance General maintenance of the content and/or infrastructure content: spherex Content related issues/PRs for notebooks with SPHEREx relevance labels Aug 4, 2026

@jkrick jkrick 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.

small changes requested, otherwise looks good.

Comment thread tutorials/spherex/spherex_psf.md
Comment thread tutorials/spherex/spherex_psf.md
Comment thread tutorials/spherex/spherex_psf.md Outdated
Comment thread tutorials/spherex/spherex_psf.md
@afaisst

afaisst commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

All comments above taken into account. @troyraen please have another look at the Exception comment you posted above to see if that makes sense.
Waiting for the data to be come public.

To do:

  • need to change the link from internal files to files on archive (or cloud).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content: spherex Content related issues/PRs for notebooks with SPHEREx relevance maintenance General maintenance of the content and/or infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants