-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from spaceml-org/new_release
New Release [WIP]
- Loading branch information
Showing
88 changed files
with
4,485 additions
and
9,650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: build | ||
|
||
env: | ||
# Use the same ssh-agent socket value across all jobs | ||
# Useful when a GH action is using SSH behind-the-scenes | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ '**' ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
# Start ssh-agent but set it to use the same ssh_auth_sock value. | ||
# The agent will be running in all steps after this, so it | ||
# should be one of the first. | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
- name: Install System Dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libfftw3-dev libopenblas-dev | ||
- name: Install | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install matplotlib | ||
pip install jupyter | ||
pip install numpy | ||
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 | ||
pip install .[dev] | ||
pip install sphinx | ||
pip install sphinx-book-theme | ||
pip install myst-nb | ||
cd doc | ||
make html linkcheck | ||
- name: Upload to github pages 🚀 | ||
if: ${{ github.event_name == 'push' }} | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: doc/_build/html # The folder the action should deploy. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _api: | ||
|
||
API | ||
==== | ||
|
||
Karman API | ||
|
||
.. autosummary:: | ||
:toctree: _autosummary | ||
:recursive: | ||
|
||
karman |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Capabilities\n", | ||
"\n", | ||
"Karman is an open-source package for data driven thermospheric density modeling with Machine Learning.\n", | ||
"\n", | ||
"It offers various functionalities to download and process input data from several sources, as well as machine learning models (also pre-trained) for thermospheric density nowcasting and forecasting." | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"language_info": { | ||
"name": "python" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# This file only contains a selection of the most common options. For a full | ||
# list see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Path setup -------------------------------------------------------------- | ||
|
||
# If extensions (or modules to document with autodoc) are in another directory, | ||
# add these directories to sys.path here. If the directory is relative to the | ||
# documentation root, use os.path.abspath to make it absolute, like shown here. | ||
# | ||
# import os | ||
# import sys | ||
# sys.path.insert(0, os.path.abspath('.')) | ||
|
||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = "karman" | ||
copyright = "2022, 2023, 2024, 2025, Giacomo Acciarini, James Walsh" | ||
author = "Giacomo Acciarini, James Walsh" | ||
|
||
# The full version, including alpha/beta/rc tags | ||
import sys | ||
sys.path.append('../') | ||
import karman | ||
import os | ||
sys.path.insert(0, os.path.abspath('../karman')) | ||
|
||
release = karman.__version__ | ||
|
||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
# Add any Sphinx extension module names here, as strings. They can be | ||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
# ones. | ||
extensions = ["myst_nb", "sphinx.ext.autodoc", "sphinx.ext.doctest", "sphinx.ext.intersphinx", "sphinx.ext.autosummary","sphinx.ext.napoleon"] | ||
|
||
# build the templated autosummary files | ||
autosummary_generate = True | ||
autosummary_imported_members = True | ||
napoleon_google_docstring = True | ||
numpydoc_show_class_members = False | ||
panels_add_bootstrap_css = False | ||
|
||
autosectionlabel_prefix_document = True | ||
|
||
intersphinx_mapping = { | ||
"numpy": ("https://numpy.org/doc/stable/", None), | ||
"python": ("https://docs.python.org/3", None), | ||
"matplotlib": ("https://matplotlib.org/stable/", None), | ||
} | ||
|
||
autoclass_content = 'both' | ||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ["_templates",".DS_Store"] | ||
|
||
# List of patterns, relative to source directory, that match files and | ||
# directories to ignore when looking for source files. | ||
# This pattern also affects html_static_path and html_extra_path. | ||
exclude_patterns = ["_build", ".DS_Store"] | ||
|
||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
# | ||
html_theme = "sphinx_book_theme" | ||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
html_static_path = ["_static"] | ||
|
||
html_logo = "_static/Karman_logo_white.png" | ||
|
||
html_theme_options = { | ||
"repository_url": "https://github.com/spaceml-org/karman", | ||
"repository_branch": "main", | ||
"path_to_docs": "docs", | ||
"use_repository_button": True, | ||
"use_issues_button": True, | ||
"launch_buttons": { | ||
"binderhub_url": "https://mybinder.org", | ||
"notebook_interface": "jupyterlab" | ||
}, | ||
"navigation_with_keys": False, | ||
} | ||
|
||
nb_execution_mode = "force" | ||
|
||
nb_execution_excludepatterns = [ | ||
# "target_notebook.ipynb", | ||
] | ||
|
||
latex_engine = "xelatex" | ||
|
||
myst_enable_extensions = [ | ||
"amsmath", | ||
"colon_fence", | ||
"deflist", | ||
"dollarmath", | ||
"html_image", | ||
] |
Oops, something went wrong.