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
As discussed in recent meetings, we need to take care of the docstrings of Leaspy V2. The goals are:
make sure the docstrings exist (at least for public objects)
make sure the docstrings are correctly formatted (Numpydoc style, cross-references etc...)
make sure the texts of the docstrings are correct and complete (sometimes they are out-of-sync with the code, sometimes they don't make any sense, sometimes they are pretty obscure...)
try to improve the docstrings as much as possible (add type hints, add references and so on)
Style and references
In terms of style, we use the Numpydoc style to write our docstrings, they should basically look like that:
defdo_something(parameter1: int, parameter2: str="all") ->float:
"""One line short description of what the function does. Eventually a more detailed explanation which can span multiple lines. Parameters ---------- parameter1 : :obj:`int` Description of parameter1. parameter2 : :obj:`str`, optional Description of parameter2. Default="all". Returns ------- :obj:`float` : Description of the return value. """
....
In docstrings it is possible to link other functions or classes of Leaspy by using the following syntax: :class:~leaspy.models.AbstractModel. You can take a look at MR !189 to see some examples.
Work organization
As discussed, we can share the load between us. I'm going to propose a split but we can re-organize things if some of you want to do more/less.
The idea would be to open small MR targeting a small number of files at the time. We could for example have one MR per bullet point if that makes sense.
Objectives
As discussed in recent meetings, we need to take care of the docstrings of Leaspy V2. The goals are:
Style and references
In terms of style, we use the Numpydoc style to write our docstrings, they should basically look like that:
In docstrings it is possible to link other functions or classes of Leaspy by using the following syntax:
:class:~leaspy.models.AbstractModel
. You can take a look at MR !189 to see some examples.Work organization
As discussed, we can share the load between us. I'm going to propose a split but we can re-organize things if some of you want to do more/less.
The idea would be to open small MR targeting a small number of files at the time. We could for example have one MR per bullet point if that makes sense.
leaspy.algo
leaspy.algo.fit
: @caglayantunaleaspy.algo.personalize
: @caglayantunaleaspy.algo.others
: @caglayantunaleaspy.algo.utils
: @caglayantunaleaspy.algo.base.py
: @caglayantunaleaspy.algo.factory.py
: @caglayantunaleaspy.algo.settings.py
: @caglayantunaleaspy.datasets
leaspy.datasets
: @NicolasGensollen (It's more or less already done, I'll finish it if needed...)leaspy.io
leaspy.io.data.data.py
: @laguilhonleaspy.io.data.dataset.py
: @maylistran01leaspy.io.data.abstract_dataframe_data_reader.py
: @JulietteOrtholandleaspy.io.data.event_dataframe_data_reader.py
: @JulietteOrtholandleaspy.io.data.joint_dataframe_data_reader.py
: @JulietteOrtholandleaspy.io.data.visit_dataframe_data_reader.py
: @JulietteOrtholandleaspy.io.data.factory.py
: @NicolasGensollenleaspy.io.data.individual_data.py
: @NicolasGensollenleaspy.io.logs
: @caglayantunaleaspy.io.outputs.individual_parameters.py
: @sofia.kaisaridileaspy.io.outputs.results.py
: @NicolasGensollenleaspy.models
leaspy.models.obs_models
: @NicolasGensollenleaspy.models.abract_model.py
: @NicolasGensollenleaspy.models.absract_multivariate_model.py
: @NicolasGensollenleaspy.models.factory.py
: @NicolasGensollenleaspy.models.base.py
: @gabrielle-casleaspy.models.constant.py
: @gabrielle-casleaspy.models.joint.py
: @JulietteOrtholandleaspy.models.univariate_joint.py
: @JulietteOrtholandleaspy.models.multivariate.py
: @sofia.kaisaridileaspy.models.settings.py
: @gabrielle-casleaspy.models.univariate.py
: @gabrielle-casleaspy.models.utilities.py
: @laguilhonleaspy.samplers
leaspy.samplers
: @caglayantunaleaspy.utils
leaspy.utils.functional
: @maylistran01leaspy.utils.weighted_tensors
: @laguilhonleaspy.variables
leaspy.variables
: @NicolasGensollen (MR !189)The text was updated successfully, but these errors were encountered: