Skip to content

Commit 9ab4de9

Browse files
Fix missing function documentation (#85)
1 parent 433c676 commit 9ab4de9

File tree

5 files changed

+21
-9
lines changed

5 files changed

+21
-9
lines changed

.github/workflows/_build_doc.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
- name: Install dependencies
3535
run: |
3636
python -m pip install --upgrade pip
37+
python -m pip install .
3738
python -m pip install -r doc/requirements.txt
3839
3940
- name: Build the documentation

doc/conf.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@
1010

1111
"""This module is the configuration for the Sphinx documentation building process"""
1212

13-
import os
1413
import sys
14+
from pathlib import Path
1515

1616
project = "python-cmethods"
1717
copyright = "2023, Benjamin Thomas Schwertfeger" # pylint: disable=redefined-builtin
1818
author = "Benjamin Thomas Schwertfeger"
1919

2020
# to import the package
21-
sys.path.insert(0, os.path.abspath(".."))
21+
parent_directory = Path("..").resolve()
22+
sys.path.insert(0, str(parent_directory))
2223

2324
# import links
2425
rst_epilog = ""
@@ -50,6 +51,5 @@
5051
"display_github": True,
5152
"github_user": "btschwertfeger",
5253
"github_repo": "python-cmethods",
53-
"github_version": "master/docs/",
54+
"github_version": "master/doc/",
5455
}
55-
# html_theme_options = {

doc/license.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
License
99
=======
1010

11-
.. include:: ../../LICENSE
11+
.. include:: ../LICENSE

doc/methods.rst

+14-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,20 @@
66
Bias Correction Methods
77
=======================
88

9-
Please note that the formulas are meant to be applied to a single time series.
10-
The python-cmethods package can apply these formulas to single and
11-
multidimensional data.
9+
General
10+
-------
11+
12+
- Please note that the formulas are meant to be applied to a single time series.
13+
The python-cmethods package can apply these formulas to single and
14+
multidimensional data.
15+
- Selecting the appropriate number of quantiles for distribution-based
16+
techniques is a challenging task. The number of quantiles determines the
17+
number of bins of the probability density function and the cumulative
18+
distribution function, which represent the distribution of the time series.
19+
The number of quantiles should be large enough to capture the nuances of the
20+
distribution functions but not excessively high, as this can result in a
21+
straight-line distribution, which lead to artificial bias while interpolating.
22+
1223

1324
.. _linear-scaling:
1425

doc/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
cloup
12
netCDF4>=1.6.1
23
numpy
34
setuptools_scm
45
sphinx
56
sphinx-rtd-theme
6-
tqdm
77
xarray>=2022.11.0

0 commit comments

Comments
 (0)