You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
("PR") in the rail repository you cloned from. `GitHub has instructions <https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request>`_.
78
76
79
77
Several continuous integration checks will be performed for new pull requests.
80
78
If any of these automatic processes find issues with the code, you should address
@@ -133,8 +131,8 @@ We follow the `pep8 <https://peps.python.org/pep-0008/#descriptive-naming-styles
133
131
recommendations for naming new modules and ``RailStage`` classes within them.
134
132
135
133
136
-
Modules
137
-
-------
134
+
Modules Names
135
+
-------------
138
136
139
137
Modules should use all lowercase, with underscores where it aids the readability
140
138
of the module name.
@@ -148,8 +146,8 @@ It's good for the module name to specify the source of the implementation of a p
148
146
Note that these names should not be identical to the name of the package the algorithm came from, to avoid introducing namespace collisions for users who have imported the original package as well, i.e. ``pzflow_nf`` is a safer name than ``pzflow``.
149
147
150
148
151
-
Stages
152
-
------
149
+
Stage Names
150
+
-----------
153
151
154
152
RailStages are python classes and so should use the CapWords convention. All
155
153
rail stages using the same algorithm should use the same short, descriptive
@@ -170,6 +168,32 @@ Possible suffixes include:
170
168
* Degrader
171
169
* Evaluator
172
170
171
+
172
+
173
+
RAIL Documentation
174
+
==================
175
+
176
+
All of the documentation on this site is built as part of the
177
+
`RAIL Package <https://github.com/lsstdesc/rail>`_, and the
178
+
configuration and skeleton for the documenation live in the
179
+
`rail/docs` directory.
180
+
181
+
The documation skeleton is setup to work with whatever rail
182
+
packages are installed, e.g., if you are just working on one
183
+
of the algorithms, you can just install that algorithm in
184
+
addition to `rail_base` and `rail` and when you generate the
185
+
docs you will just get the docs for `rail_base` and that package.
186
+
187
+
The documentation uses `sphinx
188
+
<https://www.sphinx-doc.org/en/master/>`_
189
+
to automatically generate some content from the source code,
190
+
this requires being very careful with docstring formatting. The rail_base package is pretty good about using the numpy docstring style, so I think we should migrate things towards that: https://numpydoc.readthedocs.io/en/latest/format.html
191
+
the documentation uses some python cleverness to find all the rail code in your current python environment, this lives in: rail_base/src/rail/core/introspection.py
192
+
the rail package is linked to readthedocs so that anytime we push to main it will get pulled over to readthedocs.
0 commit comments