Configuring the documentation for Sphinx and ReadTheDocs#40
Configuring the documentation for Sphinx and ReadTheDocs#40joe-from-mtl wants to merge 3 commits into
Conversation
|
Hello @joe-from-mtl! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2024-12-17 21:22:34 UTC |
| return npz['metadata'][0], npz['types'][0]['metadata'] | ||
|
|
||
|
|
||
| def _example_one(): |
| Attributes | ||
| ---------- | ||
| directory : str | ||
|
|
|
|
||
| Parameters | ||
| ---------- | ||
| img1 |
There was a problem hiding this comment.
can you fix the linum_detect_focalCurvature.py too?
There was a problem hiding this comment.
We should also mention somewhere than the zarr chunk size is often chosen to match the raw tile size. This is important for the processing pipeline.
|
I was looking at this for my own additions, but I think we should agree on a style first. For LIOM Toolkit I have been using docstrings like this for readthedocs: def get_folder_list(tiles_directory: Path) -> list[Path]:
"""
List all the tiles in a given directory.
:param tiles_directory: Path to the directory containing the tiles.
:type tiles_directory: Path
:return: List of tile file paths.
:rtype: list[Path]
"""I based this off of the Sphinx-RTD documentation: It's a bit less verbose than what we have, but I prefer this as it leaves a lot less whitespace compared to: def generate_default(nX, nY):
"""Generates a default topology where all tiles in mosaic are nodes and all neighbor relation is an edge.
Parameters
----------
nX: int
Number of tiles in X direction.
nY: int
Number of tiles in Y direction.
Returns
-------
mosaicTopo : NetworkX graph object describing the mosaic topology
Note
----
Each node position (in tile reference) can be accessed as node attributes 'x' and 'y'.
""" |
|
@FIrgolitsch can you add a comment to this issue #59 . Let's brainstorm there for what coding standards we want to follow Also, in scilpy we use the second option so it is what I am used to, but I wouldn't mind going for the first option. We only need to be constant across the codebase. |
6edeb53 to
f3b037c
Compare
805f867 to
3d2625c
Compare
|
Found this PR still open and figured I'd fix this one too. This can be merged after #111 . |
3d2625c to
8e03ce4
Compare
645eac5 to
fcb86d3
Compare
8e03ce4 to
81328a3
Compare
fcb86d3 to
c2ae592
Compare
81328a3 to
6cb511c
Compare
c2ae592 to
3e843da
Compare
6cb511c to
288f45f
Compare
3e843da to
0b77101
Compare
288f45f to
af57ab6
Compare
0b77101 to
2aaf6f9
Compare
af57ab6 to
47e639e
Compare
2aaf6f9 to
b8c2d0f
Compare
47e639e to
1862806
Compare
This PR adresses the following issues