Skip to content

Commit 6c6296b

Browse files
authored
Merge pull request #8 from kesslerlib/docs_fix
docs fix
2 parents 07e299f + 88d1235 commit 6c6296b

7 files changed

Lines changed: 39 additions & 28 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jobs:
2929
pip install matplotlib
3030
pip install jupyter
3131
pip install numpy
32-
pip install torch==1.11.0+cpu torchvision==0.12.0+cpu torchaudio==0.11.0+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
32+
pip install dsgp4
33+
pip install pyprob
34+
pip install skyfield
35+
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
3336
pip install .[dev]
3437
pip install sphinx
3538
pip install sphinx-book-theme
@@ -49,4 +52,4 @@ jobs:
4952
if: ${{ github.event_name == 'push' }}
5053
uses: JamesIves/github-pages-deploy-action@v4
5154
with:
52-
folder: docs/_build/html # The folder the action should deploy.
55+
folder: docs/_build/html # The folder the action should deploy.

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## ⚠️ We are in the process of updating Kessler. Because of this, Kessler is now in maintenance mode and not all functionalities might be working for a few days ⚠️
1+
# Kessler
22

33
<!-- PROJECT LOGO -->
44
<br />
@@ -90,8 +90,6 @@ If you would like to learn more about or cite the techniques Kessler uses, pleas
9090

9191
## Installation
9292

93-
### How to install
94-
9593
To install kessler, do the following:
9694

9795
```

docs/conf.py

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,24 @@
2727
# Add any Sphinx extension module names here, as strings. They can be
2828
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
2929
# ones.
30-
extensions = ["myst_nb",
31-
"sphinx.ext.intersphinx",
32-
"sphinx.ext.autodoc",
33-
"sphinx.ext.autosummary",
34-
"sphinx.ext.doctest",
35-
]
30+
extensions = ["myst_nb", "sphinx.ext.autodoc", "sphinx.ext.doctest", "sphinx.ext.intersphinx", "sphinx.ext.autosummary","sphinx.ext.napoleon"]
31+
32+
33+
# build the templated autosummary files
34+
autosummary_generate = True
35+
autosummary_imported_members = True
36+
napoleon_google_docstring = True
37+
numpydoc_show_class_members = False
38+
panels_add_bootstrap_css = False
39+
40+
autosectionlabel_prefix_document = True
41+
42+
# katex options
43+
#
44+
#
45+
katex_prerender = True
46+
47+
napoleon_use_ivar = True
3648

3749
# Add any paths that contain templates here, relative to this directory.
3850
templates_path = ["_templates"]
@@ -43,13 +55,12 @@
4355
"matplotlib": ("https://matplotlib.org/stable/", None),
4456
}
4557

46-
4758
autoclass_content = 'both'
4859

4960
# List of patterns, relative to source directory, that match files and
5061
# directories to ignore when looking for source files.
5162
# This pattern also affects html_static_path and html_extra_path.
52-
exclude_patterns = ["_build", ".DS_Store"]
63+
exclude_patterns = ["_build", ".DS_Store", ".pickle",".txt",'jupyter_execute/**/*.ipynb','jupyter_execute/*.ipynb']
5364

5465

5566
# -- Options for HTML output -------------------------------------------------
@@ -69,7 +80,7 @@
6980
html_theme_options = {
7081
"repository_url": "https://github.com/kesslerlib/kessler/",
7182
"repository_branch": "master",
72-
"path_to_docs": "docs",
83+
"path_to_docs": "doc",
7384
"use_repository_button": True,
7485
"use_issues_button": True,
7586
"launch_buttons": {
@@ -81,13 +92,12 @@
8192

8293
nb_execution_mode = "force"
8394

84-
nb_execution_excludepatterns = ['basics.ipynb','cdms_analysis_and_plotting.ipynb','LSTM_training.ipynb']
85-
86-
# Force printing traceback to stderr on execution error.
87-
nb_execution_show_tb = True
88-
89-
# Set a longer timeout for notebook execution.
90-
nb_execution_timeout = 120
95+
nb_execution_excludepatterns = [
96+
"LSTM_training.ipynb",
97+
"basics.ipynb",
98+
"probabilistic_programming_module.ipynb",
99+
"plotting.ipynb"
100+
]
91101

92102
latex_engine = "xelatex"
93103

@@ -97,4 +107,4 @@
97107
"deflist",
98108
"dollarmath",
99109
"html_image",
100-
]
110+
]

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Kessler also includes a novel generative model of conjunction events and CDM seq
99

1010
For more details on the model and results, check out our publications listed in the README of the repository.
1111

12-
The authors are [Giacomo Acciarini](https://www.esa.int/gsp/ACT/team/giacomo_acciarini/), [Atılım Güneş Baydin](https://gbaydin.github.io/), [Dario Izzo](https://www.esa.int/gsp/ACT/team/dario_izzo/). The main developer is Giacomo Acciarini (giacomo.acciarini@gmail.com).
12+
The authors are [Giacomo Acciarini](https://www.esa.int/gsp/ACT/team/giacomo_acciarini/), [Atılım Güneş Baydin](https://gbaydin.github.io/), Francesco Pinto, and the FDL Europe Constellation team.
1313

1414

1515
```{toctree}

docs/notebooks/plotting.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
"source": [
3535
"import kessler\n",
3636
"import dsgp4\n",
37-
"import pyprob\n",
38-
"import numpy as np"
37+
"import pickle"
3938
]
4039
},
4140
{
@@ -207,7 +206,6 @@
207206
"metadata": {},
208207
"outputs": [],
209208
"source": [
210-
"import pickle\n",
211209
"with open('trace.pickle', 'rb') as f:\n",
212210
" trace = pickle.load(f)"
213211
]

docs/tutorials.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ These tutorials include some basic examples on how to use kessler
1212

1313
notebooks/basics.ipynb
1414
notebooks/cdms_analysis_and_plotting.ipynb
15+
notebooks/plotting.ipynb
16+
1517

1618
Advanced
1719
^^^^^^^^^^^

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def read_package_variable(key):
3030
author='ESA FDL Europe Constellations Team',
3131
# author_email='',
3232
packages=find_packages(),
33-
install_requires=['numpy', 'matplotlib', 'torch>=1.5.1', 'dsgp4', 'skyfield>=1.26', 'pyprob', 'pandas'],
34-
extras_require={'dev': ['pytest', 'coverage', 'pytest-xdist', 'docker', 'sgp4>=2.20']},
33+
install_requires=['pyprob', 'numpy', 'matplotlib', 'torch>=1.5.1', 'dsgp4', 'skyfield>=1.26', 'pandas'],
34+
extras_require={'dev': ['pytest', 'coverage', 'pytest-xdist']},
3535
# url='https://github.com/kessler/kessler',
3636
classifiers=['License :: OSI Approved :: BSD License', 'Programming Language :: Python :: 3'],
3737
license='BSD'

0 commit comments

Comments
 (0)