-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sphinx documentation #94
Conversation
Latest changes could use an initial review. Some known issues:
Despite this, I think I could benefit from some initial feedback on the structure of the documentation, or anything that could be missing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks really good, nice work!
As you will some of my comment are not directed to you but more on things that we should discuss as group, so don't worry if you don't have the answer.
I really like the display of the functions with the docstrings and the link to the code source !! 👍
Some general minor comments (maybe for later):
-
Is it possible to change the theme? I found this a bit "sad" 😅
-
It looks like the name
The Euclid-like ImSim Module
too long andmodule
appears on a separate line. Maybe changing the theme would solve the problem but at the moment it looks a bit confusing.
-
in the
Module Index
only euclidlike_imsim appears and noeuclidlike
-
Probably related to the comment above, when you search for something it looks through
euclidlike_imsim
and thescripts
but not the euclidlike module. I tied with words: psf, bandpass -
That might also be related to the theme. Only some of the functions appears but not all of them. Like for example some of the WCS functions are not listed.
CHANGELOG.rst
Outdated
@@ -0,0 +1,3 @@ | |||
Changes from v0.0.0 to v0.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a comment to you specifically.
We should discuss this at some point. But I think it would be more appropriate to use v0.1.0 or even v1.0.0.
We should chat about that as a group.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change 0.9.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also not a comment for you.
We should review this page in the group.
import euclidlike_imsim | ||
|
||
project = 'GalSim-Euclid-Like' | ||
copyright = '2024, Rachel Mandelbaum, Axel Guinot, Federico Berlfein, Andy Park, Xiangchong Li, Michael Troxel, Tianqing Zhang' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should, somehow, include a reference to Euclid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rachel will ask once documentation is live.
docs/conf.py
Outdated
project = 'GalSim-Euclid-Like' | ||
copyright = '2024, Rachel Mandelbaum, Axel Guinot, Federico Berlfein, Andy Park, Xiangchong Li, Michael Troxel, Tianqing Zhang' | ||
author = 'Rachel Mandelbaum, Axel Guinot, Federico Berlfein, Andy Park, Xiangchong Li, Michael Troxel, Tianqing Zhang' | ||
release = '0.0.1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be to have a VERSION
file and get the value from this file?
I am just thinking that would avoid having to change the version number in multiple places to avoid confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be cleaner yes. In GalSim the version lives inside the galsim
folder, in our case we have euclidlike
and euclidlike_imsim
. Do we want the version to then live in the GalSim-Euclid-Like
home directory then? Or also live in euclidlike
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having both in the same place makes things a little more tricky but I think I would use one versioning for both and probably include it in GalSim-Euclid-Like
. But I am open to other suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make VERSION
file.
docs/overview.rst
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment would apply to the readme.
Should we add a section like contributing
? To make it clear that the code is fully public and not driven by Euclid and everyone is free to propose/implement new things?
Further updates to address some comments, mainly:
Potential issues and changes:
|
Made last couple of changes based on last weeks conversation. Mainly:
I think this PR is ready for a final review and potential merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two small issues I noted in the documentation of the examples. I'm hitting "approve" because you might be able to fix it easily and then you can go ahead and merge.
docs/examples.rst
Outdated
|
||
:gh-link:`end_to_end_demo.py <examples/end_to_end_demo.py>` | ||
|
||
This first demo is the euclidlike-equivalent of _`demo 13 <https://github.com/GalSim-developers/GalSim/blob/main/examples/demo13.py>`_ in ``GalSim``. This demo uses the Euclid-like PSF, WCS, and background noise to produce a realistic scene of galaxies and stars as observed from a Euclid-like Telescope. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something is going wrong with this line, if you look at the html it produces on your branch, but I'm not sure how to fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed.
docs/examples.rst
Outdated
|
||
This first demo is the euclidlike-equivalent of _`demo 13 <https://github.com/GalSim-developers/GalSim/blob/main/examples/demo13.py>`_ in ``GalSim``. This demo uses the Euclid-like PSF, WCS, and background noise to produce a realistic scene of galaxies and stars as observed from a Euclid-like Telescope. | ||
|
||
** Features introduced in the Python file**: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These asterisks are not doing what was intended (if you look at the html it produces)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed.
Adding Sphinx documentation files. This is the first version, still need to make a few checks before merging.