Closed tlunet closed 1 year ago
Hm, are the spaces before the :
necessary? English grammar does not have this (neither German), so I really don't want to use that in the code (if not needed for some strange reason).
Hm, are the spaces before the
:
necessary?
Yes ! If not, sphinx renders the type in bold font too. This is actually the standard of Numpy Style Docstring, see https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_numpy.html
PS : French syntax rules ! :smile:
Currently problem class constructors explicitly define in their signature the problem parameters, for instance :
But only a few of the problem classes have a fully detailed documentation describing the problem parameters (for an example, see the advectionNd class).
When working with a given problem, it would be good to also add in the same time the documentation for its class, following the documentation guidelines.
:warning: Note the spaces before and after the semicolon when describing the type of a variable, e.g
A : np.ndarray
.In Spyder IDE, this would render like this :
Finally, here is a (non-exhaustive) list of problem classes for which documentation should be reworked or added :
acoustic_1d_imex
advectiondiffusion1d_imex
advectiondiffusion1d_implicit
allencahn_front_fullyimplicit
allencahn_front_semiimplicit
allencahn_periodic_fullyimplicit
allencahn_periodic_semiimplicit
allencahn_periodic_multiimplicit
(eventually, all the `allencahn class could be merged into a single one ...)allencahn_temp_imex
auzinger
battery_n_capacitors
boussinesq_2d_imex
buck_converter
swfw_scalar
fermi_pasta_ulam_tsingou
full_solar_system
generalized_fisher
GenericNDimFinDiff
grayscott_imex_diffusion
harmonic_oscillator
fenics_heat
fenics_heat_mass
fenics_heat_weak_fullyimplicit
fenics_heat_weak_imex
heat2d_petsc_forced
heatNd_unforced
heatNd_forced
heatNd_forced
(CuPy problem class)heatNd_unforced
(CuPy problem class)henon_heiles
logistics_equation
LorenzAttractor
nonlinearschroedinger_imex
outer_solar_system
penningtrap
piline
Quench
QuenchIMEX
testequation0d
vanderpol
fenics_vortex_2d
nonlinear_ODE_1