Skip to content

Commit 9d94c09

Browse files
authored
Merge pull request #110 from sfinkens/rtd-api
Add conda environment for readthedocs
2 parents fd48442 + a33bbdc commit 9d94c09

File tree

4 files changed

+45
-2
lines changed

4 files changed

+45
-2
lines changed

.readthedocs.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
version: 2
4+
# Build documentation in the docs/ directory with Sphinx
5+
sphinx:
6+
configuration: doc/source/conf.py
7+
fail_on_warning: true
8+
9+
build:
10+
os: "ubuntu-20.04"
11+
tools:
12+
python: "mambaforge-4.10"
13+
conda:
14+
environment: doc/rtd_environment.yml

doc/rtd_environment.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: readthedocs
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3.9
6+
- numpy
7+
- scipy
8+
- bottleneck
9+
- python-dateutil
10+
- hdf5
11+
- h5py
12+
- graphviz
13+
- setuptools
14+
- setuptools_scm
15+
- setuptools_scm_git_archive
16+
- sphinx
17+
- sphinx_rtd_theme
18+
- sphinxcontrib-apidoc
19+
- pip
20+
- pip:
21+
- docutils
22+
- pyorbital
23+
- python-geotiepoints
24+
- trollimage
25+
- pyspectral
26+
- pyorbital
27+
- .. # relative path to the pygac project

doc/source/_static/.gitkeep

Whitespace-only changes.

pygac/calibration.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,11 @@ def __new__(cls, spacecraft, custom_coeffs=None, coeffs_file=None):
156156
@classmethod
157157
def read_coeffs(cls, coeffs_file):
158158
"""Read calibration coefficients for all satellites from file.
159-
Argument
159+
160+
Args:
160161
coeffs_file (str): path to coefficients file
161-
Returns
162+
163+
Returns:
162164
coeffs (dict): dictionary containing coefficients for all satellites
163165
version (str): version of the coefficients (None if unknown)
164166
"""

0 commit comments

Comments
 (0)