Skip to content

Commit 5e2f3b9

Browse files
committed
small docs updates
1 parent 4fd0010 commit 5e2f3b9

File tree

13 files changed

+31
-34
lines changed

13 files changed

+31
-34
lines changed

.github/workflows/test_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# test_docs.yml
2-
# Build the documentation, the same as would be done locally with `make test`.
2+
# Build the documentation, the same as would be done locally with `make docs`.
33
name: CI-docs
44

55
on:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test: lint install
3333

3434

3535
docs:
36-
jupyter-book build docs
36+
jupyter-book build docs -n -W --keep-going
3737

3838

3939
deploy: test docs

docs/_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ sphinx:
5050
# MathJax 3 (faster than the default).
5151
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
5252
# language: en
53-
numfig_secnum_depth: 2 # Eq (1.1.1) instead of (1)
53+
numfig_secnum_depth: 1 # Eq (1.1) instead of (1)
54+
bibtex_reference_style: label
55+
# bibtex_default_style: plain # Citations as numbers
5456
extra_extensions:
5557
- sphinx_design
5658
- sphinxcontrib.mermaid

docs/_toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ parts:
99
# numbered: 1
1010
chapters:
1111
- file: content/opinf/intro.md
12-
# - file: content/opinf/literature.md
1312
- file: content/opinf/installation.md
13+
# - file: content/opinf/literature.md
1414

1515
# How to use the package.
1616
- caption: Package Usage

docs/content/contributing/code_anatomy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The `pre` module contains all transformer and basis class definitions.
4848
Transformers and bases can be _monolithic_ (treating the state as one variable) or _multivariable_ (treating different chunks of the state as separate variables).
4949
Multivariable transformers and bases inherit from `pre._multivar._MultivarMixin` and should have, as attributes, a list of monolithic counterparts.
5050

51-
Read [Data Normalization](sec-normalization) and [Basis Computation](sec-basis-computation) before starting work here.
51+
Read [Data Scaling](sec-pre-scaling) and [Basis Computation](sec-basis-computation) before starting work here.
5252

5353
(subsec-contrib-transformerclass)=
5454
### Transformer Classes

docs/content/opinf/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(sec-installation)=
2-
# Installation
2+
# Package Installation
33

44
This page describes how to install `rom_operator_inference` locally.
55

docs/content/opinf/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Common preprocessing steps include
153153
2. Centering or shifting data to account for boundary conditions.
154154
3. Scaling / nondimensionalizing the variables represented in the state.
155155
156-
See [Data Normalization](sec-normalization) for details and examples.
156+
See [Data Scaling](sec-pre-scaling) for details and examples.
157157
:::
158158
159159
Operator Inference uses a regression problem to compute the reduced-order operators, which requires state data ($\mathbf{Q}$), input data ($\mathbf{U}$), _and_ data for the corresponding time derivatives:

docs/content/tutorials/basics.ipynb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -641,17 +641,11 @@
641641
"cell_type": "markdown",
642642
"metadata": {},
643643
"source": [
644-
":::{tip}\n",
644+
"::::{tip}\n",
645645
"The class `opinf.pre.PODBasis` conveniently combines basis construction and dimension selection. The `fit()` method receives the state matrix $\\mathbf{Q}$ and either the desired reduced dimension $r$ or a threshold value for selecting $r$ based on the cumulative or residual energy.\n",
646646
"\n",
647-
"python```\n",
648-
">>> basis = opinf.pre.PODBasis().fit(Q, r=2)\n",
649-
">>> basis.shape == Vr.shape and np.all(basis.entries == Vr)\n",
650-
"True\n",
651-
"```\n",
652-
"\n",
653647
"The next tutorial uses the `PODBasis` class instead of the `pod_basis()` function.\n",
654-
":::"
648+
"::::"
655649
]
656650
},
657651
{

docs/content/tutorials/gallery.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/content/tutorials/heat_equation.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@
880880
"source": [
881881
":::{admonition} On Convergence\n",
882882
":class: warning\n",
883-
"The figure above conveys a sense of convergence: as the reduced dimension $r$ increases, the ROM error decreases. In more complex problems, **the error does not always decrease monotinically as $r$ increases**. In fact, at some point as $r$ increases performance often deteriorates significantly due to poor conditioning in the operator inference regression. In practice, choose a reduced dimension $r$ that balances solution accuracy with computational speed, not too small but also not too large.\n",
883+
"The figure above conveys a sense of convergence: as the reduced dimension $r$ increases, the ROM error decreases. In more complex problems, **the error does not always decrease monotonically as $r$ increases**. In fact, at some point as $r$ increases performance often deteriorates significantly due to poor conditioning in the operator inference regression. In practice, choose a reduced dimension $r$ that balances solution accuracy with computational speed, not too small but also not too large.\n",
884884
":::"
885885
]
886886
},
@@ -1537,7 +1537,7 @@
15371537
"metadata": {},
15381538
"outputs": [],
15391539
"source": [
1540-
"plot_state_error(15, run_trial_parametric, \"Average relative\\nFrobenius-norm error\")"
1540+
"plot_state_error(14, run_trial_parametric, \"Average relative\\nFrobenius-norm error\")"
15411541
]
15421542
}
15431543
],

0 commit comments

Comments
 (0)