Skip to content
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

WebbPSF to STPSF #951

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open

WebbPSF to STPSF #951

wants to merge 13 commits into from

Conversation

BradleySappington
Copy link
Collaborator

transition webbpsf to stpsf alias

@pep8speaks
Copy link

pep8speaks commented Dec 16, 2024

Hello @BradleySappington, Thank you for updating !

There are no PEP8 issues in this Pull Request.

Comment last updated at 2024-12-19 15:30:54 UTC

@BradleySappington BradleySappington changed the title import stpsf DRAFT: WebbPSF to STPSF Dec 16, 2024
@mperrin
Copy link
Collaborator

mperrin commented Dec 16, 2024

Read the docs redirect. Is there a way to make that global across all pages? Would we need to put that redirect text on each of the individual RST pages?

Thanks so much for all the work on this -- so many little details to keep track of!

@BradleySappington
Copy link
Collaborator Author

BradleySappington commented Dec 16, 2024

@mperrin - I don't actually think this readthedocs redirect is needed. I created a domain redirect through readthedocs admin settings and have successfully tested (I just have it deactivated currently)

@mperrin
Copy link
Collaborator

mperrin commented Dec 16, 2024

superb, I'm glad to hear that there's a way to do a domain redirect, and that you've already figured it out! :-)

@BradleySappington BradleySappington changed the title DRAFT: WebbPSF to STPSF WebbPSF to STPSF Dec 16, 2024
@BradleySappington BradleySappington self-assigned this Dec 16, 2024
@BradleySappington
Copy link
Collaborator Author

I removed some of the workflows as we are now importing everything from stpsf (including tests) they are failing here. No sense in spending time making the workflows functional to archive the repo in a few months so I removed them. Will not merge until confirmed everyone is comfortable with these changes.

Copy link
Collaborator

@york-stsci york-stsci left a comment

Choose a reason for hiding this comment

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

Seems like a reasonable way to start the sunset process

Copy link
Collaborator

@mperrin mperrin left a comment

Choose a reason for hiding this comment

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

Good overall, but (a) I think we should not go quite so far in cutting out the test suite, and (b) as discussed in slack let's make a docs page about the name migration rather than trying to put all the info in a warning message.


If you would like to receive email announcements of future versions, please contact Marshall Perrin, or visit `maillist.stsci.edu <https://maillist.stsci.edu/scripts/wa.exe?SUBED1=webbpsf-users&A=1>` to subscribe yourself to the "[email protected]" list.
.. meta::
:http-equiv=Refresh: 0; url='https://stpsf.readthedocs.io/en/latest/'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Did you decide this redirect was needed, or were you going to use the domain redirect option in readthedocs that you mentioned? Either way is fine with me - I just want to make sure we all understand what the plan is and how it's going to work.

Relatedly, I see the docs build was left in the CI tests. That makes me think that the plan is not to use a domain redirect in readthedocs, since if we're just redirecting the whole domain, why do we need to test that these docs build?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'd like to stick with the redirect through readthedocs. I had made this change initially before realizing I could do it on read the docs. I chose not to change it back because I liked the code showing the intention of not using this documentation any more, however did not feel it necessary to delete the entire documentation base. If you'd like me to put back please advise.

py{310,311,312}-{poppydev,pysiafdev,astropydev,latest,stable}-test
py310-legacy-test
py{310,311,312}-{poppydev,pysiafdev}-cov
envlist = docbuild
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doesn't seem right to me to remove all test environments apart from the docs.

We're still going to have the webbpsf package as a wrapper that imports stpsf, and being able to do import webbpsf and have existing code run is a KEY PART of the intended functionality here.

Therefore there needs to be a test suite that verifies that we can indeed import webbpsf and run calculations.

So please let's keep at least one test environment that runs the existing full test suite of webbpsf test functions. I don't think this needs to have all the different instances in the test matrix -- those will be covered by the stpsf test suite -- but there should be enough here to test that the import wrapper is working as intended.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Context for removing all the test environments:

Because the entire repository is replaced with stpsf, the tests that are running are stpsf tests. This wasn't playing nicely with our CI as all tests labelled webbpsf no longer existed. As this was intended to be the final release of WebbPSF, I decided to manually verify that the init change worked properly (as these automated tests will not need to run in the future because development is stopping in this repository). I think that if we all take a look and are comfortable with testing the build manually, that suffices. If this makes anyone uncomfortable I can spend time trying to get the CI functional, however I felt the benefits of that time investment were minimal.

webbpsf/__init__.py Show resolved Hide resolved

if not _warned:
warnings.warn(
Copy link
Collaborator

Choose a reason for hiding this comment

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

As discussed in slack, I'm not sure a multi-line warning with lots of !!!!! is the best choice at this time. Suggest making it shorter, and making a webpage in the docs for more information on the name migration.

Perhaps like:

"""
This message is for information only and WebbPSF will continue to function as normal.
The WebbPSF library has been moved/renamed to STPSF. Please see [READTHEDOCS_PAGE_TBD] for more information. 
WebbPSF is now an alias of STPSF and is running code from the STPSF library.
"""

And then that webpage, some new child page within the stpsf docs, can give more details and example code, rather than trying to pack too much into a warning message.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Replacing exactly as suggested here with a TODO until we have a proper page with instructions set up (stpsf 2.0.1)

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.

4 participants