-
Notifications
You must be signed in to change notification settings - Fork 3
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
documentation missing usage / how to launch #129
Comments
More generally, the documentation is extremely minimal. Please create at least one tutorial showing how to use the software for scripting (a feature that is described in the paper). Some documentation of the API (in the ideal limit, a la Scipy/Numpy) should also be present, beyond auto-generated stubs showing the constructors and fields of structs, classes, etc. A set of community guidelines and/or CONTRIBUTING.md are needed to complete the JOSS submission, as well. |
The documentations have been updated to include more tutorials. There was another set of tutorials in the form of interactive jupyter-notebooks. These were a bit more on using PyPO in scripts and the functionalities. We have now made a separate API reference, containing all public methods for interacting with PyPO. A separate page has been made describing how contributions should be carried out using the fork-and-branch workflow. This page also contains guidelines on how to comment code so that documentation can be generated from it using doxygen, for example. Is the current state of the docs acceptable? |
Thank you for greatly enhancing the documentation! A few residual comments: On https://pypo-dev.github.io/PyPO/basictut1.html
On https://pypo-dev.github.io/PyPO/basictut2.html
On https://pypo-dev.github.io/PyPO/basictut3.html
The refrain that these are not really tutorials applies to the "gridding" and "some more" pages, as well I will review the jupyter notebook based content later this weekend |
Thanks a lot for the detailed comments, especially the link to the documentation system! Wish I knew about that earlier... I have moved all these "basic tutorials" to a new explanations page, as they are indeed more like explanations than tutorials. Also, I agree with and have implemented almost all other residual comments. The only point I do not agree with is the renaming of the surfaces from quadric to conic. A conic, in my understanding, is the curve traced out by intersecting a plane with a cone. The curve itself is described as the locus of a quadratic equation in two variables (a quadratic curve), and hence the set of points describing the curve is inherently 1D, in the sense that you can continuously map the conic onto the line of real numbers. A quadric surface, on the other hand, is defined as the locus of a quadratic equation in three variables. Please see this link. On page 13 (69 on the printed document), the general equation for a quadric surface is given, which I believe also encapsulates the equation for a hyperboloid of two sheets (the upper sheet is used in PyPO). Also, on page 21 (77 in print), they discuss the hyperboloid as a quadric surface, so I do believe that "quadric surface" is an appropriate term here. |
Thank you; I looked over the written documentation, and it looks good. I was not able to check that the GUI works as described in the docs. The PySide2 dependency is wheel-only, and does not support darwin-arm64: https://pypi.org/project/PySide2/#files With regards to quadratic; my apologies, we come from different backgrounds. I assumed quadric was a synonym or alternative spelling for "quadratic." It would appear it is really a specific class of geometry, which all of the contemporary conics of optics are members of. You may find users from an optics background are confused by the term as I have been, but it is technically correct as-is |
Thank you for the observation on the arm64. We have changed the dependency on PySide2 to PySide6 - according to its PyPi page, it has a universal2 wheel for macosx. From what I could find, this also includes arm64 support. Could you please confirm if PySide6 installs correctly, and with that, if the GUI can be started? And I agree that the term "quadric" could be confusing for people used to certain conventions from optics, even though it is a mathematically correct term. We have now included a few lines in the explanation on "Reflectors/elements in PyPO" where we state the common usage of "conics" in optics and why we choose to use the term "quadric". I hope that this clears up some potential confusion. |
Thanks, all of that works well. One mild nit -- on MacOS, Qt conforms to the OS norms, and the menu bar is used. In, e.g. this tutorial, you say
My first thought on reading this was that the element menu was the set of four tabs beneath the logo (on macos), because the menubar is at the top of the screen / outside the actual application window. You might consider adding a bit of clarification there Otherwise, everything LGTM |
This issue is part of my portion of the JOSS review, openjournals/joss-reviews#5478
The documentation contains three tutorials, which use the GUI. There is not anywhere in the documentation (as best I can find) that shows how to launch the GUI, or even how to import PyPO when using the tool for scripting
The text was updated successfully, but these errors were encountered: