Skip to content

Commit

Permalink
include API autodoc (#157)
Browse files Browse the repository at this point in the history
* include API autodoc

* lint
  • Loading branch information
deepchatterjeeligo authored Oct 15, 2024
1 parent 3f097bb commit f6040d8
Show file tree
Hide file tree
Showing 12 changed files with 543 additions and 432 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
**/*.env
**/*.sif
**/*.hdf5
_build
6 changes: 6 additions & 0 deletions docs/amplfi.data.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
amplfi.data module
==================

.. automodule:: amplfi.data.base
.. automodule:: amplfi.data.paths
.. automodule:: amplfi.data.tasks
11 changes: 11 additions & 0 deletions docs/amplfi.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
API Reference
=============

.. automodule:: amplfi

.. toctree::
:maxdepth: 2

amplfi.data
amplfi.train
amplfi.tune
6 changes: 6 additions & 0 deletions docs/amplfi.train.architectures.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
amplfi.train.architectures module
=================================

.. automodule:: amplfi.train.architectures.flows.base
.. automodule:: amplfi.train.architectures.flows.coupling
.. automodule:: amplfi.train.architectures.flows.iaf
6 changes: 6 additions & 0 deletions docs/amplfi.train.cli.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
amplfi.train.cli module
-----------------------

.. automodule:: amplfi.train.cli.base
.. automodule:: amplfi.train.cli.flow
.. automodule:: amplfi.train.cli.similarity
5 changes: 5 additions & 0 deletions docs/amplfi.train.configs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
amplfi.train.configs module
===========================

.. automodule:: amplfi.train.configs.flow
.. automodule:: amplfi.train.configs.similarity
5 changes: 5 additions & 0 deletions docs/amplfi.train.models.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
amplfi.train.models module
==========================

.. automodule:: amplfi.train.models.flow
.. automodule:: amplfi.train.models.similarity
20 changes: 20 additions & 0 deletions docs/amplfi.train.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
amplfi.train module
===================

.. automodule:: amplfi.train.augmentations
.. automodule:: amplfi.train.callbacks
.. automodule:: amplfi.train.losses
.. automodule:: amplfi.train.priors


.. toctree::
amplfi.train.architectures

.. toctree::
amplfi.train.models

.. toctree::
amplfi.train.cli

.. toctree::
amplfi.train.configs
4 changes: 4 additions & 0 deletions docs/amplfi.tune.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
amplfi.tune module
==================

.. automodule:: amplfi.tune.tune
27 changes: 21 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@
# 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
from importlib.metadata import distribution
from pathlib import Path

sys.path.insert(0, os.path.abspath("../"))
parent_path = str(Path(__file__).parents[1])
sys.path.insert(0, parent_path)


# -- Project information -----------------------------------------------------
dist = distribution("amplfi")

project = "amplfi"
copyright = "2024, Ethan Marx, Deep Chatterjee"
author = "Ethan Marx, Deep Chatterjee"

project = dist.metadata["Name"]
author = dist.metadata["Author"]
copyright = f"2024, {author}"
release = dist.metadata["Version"]

# -- General configuration ---------------------------------------------------

Expand All @@ -31,6 +34,7 @@
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx_tabs.tabs",
"sphinx_autodoc_typehints",
"sphinx.ext.githubpages",
Expand Down Expand Up @@ -83,3 +87,14 @@
# 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"]

autodoc_default_options = {
"members": None,
"undoc-members": None,
"show-inheritance": None,
}
autodoc_inherit_docstrings = False
autodoc_member_order = "bysource"
autosummary_generate = True

modindex_common_prefix = ["amplfi."]
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Framework for performing rapid (~ 1s) parameter estimation of gravitational wave
Installation <installation>
First pipeline <first_pipeline>
Contributing <contributing>
amplfi
.. toctree::
:caption: Advanced
Expand Down
883 changes: 457 additions & 426 deletions poetry.lock

Large diffs are not rendered by default.

0 comments on commit f6040d8

Please sign in to comment.