Skip to content

Configuring the documentation for Sphinx and ReadTheDocs#40

Open
joe-from-mtl wants to merge 3 commits into
pr-tail-cleanupfrom
sphinx-config
Open

Configuring the documentation for Sphinx and ReadTheDocs#40
joe-from-mtl wants to merge 3 commits into
pr-tail-cleanupfrom
sphinx-config

Conversation

@joe-from-mtl

@joe-from-mtl joe-from-mtl commented Dec 17, 2024

Copy link
Copy Markdown
Contributor

Stacked PR 12/22 — review order: #115#97#98#99#100#101#108#106#107#87#116#110#111#40#112#113#117#118#120#121#122#123#124#125

Base: pr-tail-cleanup. Retargets to main as upstream PRs merge.


This PR adresses the following issues

@pep8speaks

pep8speaks commented Dec 17, 2024

Copy link
Copy Markdown

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

@joe-from-mtl joe-from-mtl marked this pull request as ready for review December 17, 2024 19:51
@joe-from-mtl joe-from-mtl requested a review from CHrlS98 December 17, 2024 19:51
Comment thread docs/CONTRIBUTING.md
Comment thread linumpy/io/npz.py Outdated
return npz['metadata'][0], npz['types'][0]['metadata']


def _example_one():

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What are those?

Comment thread linumpy/microscope/oct.py Outdated
Attributes
----------
directory : str

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Attribute description?

Comment thread linumpy/utils_images.py Outdated

Parameters
----------
img1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Missing : no?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you fix the linum_detect_focalCurvature.py too?

Comment thread docs/CONTRIBUTING.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@FIrgolitsch

FIrgolitsch commented May 26, 2025

Copy link
Copy Markdown
Contributor

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:
https://sphinx-rtd-tutorial.readthedocs.io/en/latest/docstrings.html

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'.

    """

@CHrlS98

CHrlS98 commented May 29, 2025

Copy link
Copy Markdown
Contributor

@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.

@FIrgolitsch FIrgolitsch changed the base branch from main to dev April 29, 2026 18:19
@FIrgolitsch FIrgolitsch changed the base branch from dev to pr-tail-cleanup April 29, 2026 18:22
@FIrgolitsch

Copy link
Copy Markdown
Contributor

Found this PR still open and figured I'd fix this one too. This can be merged after #111 .

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