Skip to content

Commit

Permalink
fix links in docs
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Freudenberg <[email protected]>
  • Loading branch information
Tom Freudenberg committed Mar 1, 2024
1 parent de97cb9 commit ba06977
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 17 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ __pycache__/*

# Log folders
**/lightning_logs/**

**/fluid_logs/**
**/Multiscale/**
**/bosch/**
# Project files
.ropeproject
.project
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ to have a look at the following sections:
- `Examples: Different applications with detailed explanations`_
- Documentation_

.. _`Tutorial: Understanding the structure of TorchPhysics`: https://torchphysics.readthedocs.io/en/latest/tutorial/tutorial_start.html
.. _`Tutorial: Understanding the structure of TorchPhysics`: https://boschresearch.github.io/torchphysics/tutorial/tutorial_start.html
.. _`Examples: Different applications with detailed explanations`: https://github.com/boschresearch/torchphysics/tree/main/examples
.. _Documentation: https://torchphysics.readthedocs.io/en/latest/api/modules.html
.. _Documentation: https://boschresearch.github.io/torchphysics/index.html


Installation
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/applied_tutorial_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ More applications can be found on the `example page`_.

.. _`PINNs for Poisson`: https://github.com/boschresearch/torchphysics/blob/main/examples/tutorial/solve_pde.ipynb
.. _`DRM for Poisson`: https://github.com/boschresearch/torchphysics/blob/main/examples/tutorial/solve_pde_drm.ipynb
.. _`example page`: https://torchphysics.readthedocs.io/en/latest/examples.html
.. _`example page`: https://boschresearch.github.io/torchphysics/examples.html
2 changes: 1 addition & 1 deletion docs/tutorial/condition_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Many kinds of conditions are pre implemented, they can be found in
the docs_. Depending on the used type, the condition get different inputs. The five arguments
that almost all conditions need, are:

.. _docs: https://torchphysics.readthedocs.io/en/latest/api/torchphysics.problem.conditions.html
.. _docs: https://boschresearch.github.io/torchphysics/api/torchphysics.problem.conditions.html

module
Your model that should be trained, with the condition you are creating. The definition
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/differentialoperators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ entry is specified. E.g. :math:`u: \mathbb{R}^3 \to \mathbb{R}^3` then do
``laplacian`` (:math:`u[:, 0], x`), to get the laplacian of the first entry.
The newest version of all implemented operators can be found under the docs_.

.. _docs: https://torchphysics.readthedocs.io/en/latest/api/torchphysics.utils.html
.. _docs: https://boschresearch.github.io/torchphysics/api/torchphysics.utils.html

Since ``autograd`` is used, the differential operators can work with neural networks and functions
that use PyTorch-Tensors. It follow a short example of the usage:
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/model_creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ What basics network structures are implemented, can be found under the `model-do
All networks can found under ``torchphysics.models``. For example, a simple fully
connected neural network can be created with:

.. _`model-docs`: https://torchphysics.readthedocs.io/en/latest/api/torchphysics.models.html
.. _`model-docs`: https://boschresearch.github.io/torchphysics/api/torchphysics.models.html

.. code-block:: python
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/sampler_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ are implemented, for example:

And many more, see `sampler-docs`_. The samplers lay all under ``torchphysics.samplers``.

.. _`sampler-docs`: https://torchphysics.readthedocs.io/en/latest/api/torchphysics.problem.samplers.html
.. _`sampler-docs`: https://boschresearch.github.io/torchphysics/api/torchphysics.problem.samplers.html

In general, a sampler gets the following arguments:

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/solve_pde.rst
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,4 @@ be found under the `example-folder`_.
And more in-depth information can be found on the `tutorial page`_.

.. _`example-folder`: https://github.com/boschresearch/torchphysics/tree/main/examples
.. _`tutorial page`: https://torchphysics.readthedocs.io/en/latest/tutorial/tutorial_start.html
.. _`tutorial page`: https://boschresearch.github.io/torchphysics/tutorial/tutorial_start.html
2 changes: 1 addition & 1 deletion docs/tutorial/tutorial_domain_basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For explicit documentation of each method and all implemented domains, see the d
All domains can be found under ``torchphysics.domains``.
Some pre implemented domains are: ``Point, Interval, Parallelogram, Circle...``

.. _docs: https://torchphysics.readthedocs.io/en/latest/api/torchphysics.problem.domains.html
.. _docs: https://boschresearch.github.io/torchphysics/api/torchphysics.problem.domains.html

Here we focus now on the creation of different domains. To create a domain,
we need a space to which the domain belongs.
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/tutorial_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Utils
.. _`PointSampler tutorial`: sampler_tutorial.html
.. _`model creation tutorial`: model_creation.html
.. _`condition tutorial`: condition_tutorial.html
.. _docs: https://torchphysics.readthedocs.io/en/latest/api/torchphysics.utils.html
.. _docs: https://boschresearch.github.io/torchphysics/api/torchphysics.utils.html
.. _`differential operators`: differentialoperators.html
.. _`Creating plots`: plotting.html
.. _`solving a simple PDE`: solve_pde.html
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/solve_pde.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.15 (main, Nov 4 2022, 16:13:54) \n[GCC 11.2.0]"
"version": "3.9.15"
},
"orig_nbformat": 4
},
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/solve_pde_drm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"Solving a simple PDE with the DeepRitz-approach\n",
"===========================================\n",
"Here we give a beginner-friendly introduction to TorchPhysics, going over all the basic concepts and steps. For a more in-depth explanation, we recommend the [tutorial page](https://torchphysics.readthedocs.io/en/latest/tutorial/tutorial_start.html).\n",
"Here we give a beginner-friendly introduction to TorchPhysics, going over all the basic concepts and steps. For a more in-depth explanation, we recommend the [tutorial page](https://boschresearch.github.io/torchphysics/tutorial/tutorial_start.html).\n",
"We introduce the library with the aim to solve the following PDE:\n",
"\n",
"\\begin{align*}\n",
Expand Down
2 changes: 1 addition & 1 deletion examples/workshop/Exercise3_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
"metadata": {},
"source": [
"##### c) Construct the DeepONet\n",
"Build a DeepONet consisting of a fully connected TrunkNet and BranchNet. Check the `TorchPhysics` [documentation](https://torchphysics.readthedocs.io/en/latest/api/torchphysics.models.deeponet.html), to see how this has to implemented. \n",
"Build a DeepONet consisting of a fully connected TrunkNet and BranchNet. Check the `TorchPhysics` [documentation](https://boschresearch.github.io/torchphysics/tutorial/tutorial_start.html), to see how this has to implemented. \n",
"\n",
"Both (TrunkNet and BranchNet) should have 3 hidden layers with 25 neurons each. The output of both networks should be 30 neurons."
]
Expand Down
2 changes: 1 addition & 1 deletion examples/workshop/Sol3_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
"metadata": {},
"source": [
"##### c) Construct the DeepONet\n",
"Build a DeepONet consisting of a fully connected TrunkNet and BranchNet. Check the `TorchPhysics` [documentation](https://torchphysics.readthedocs.io/en/latest/api/torchphysics.models.deeponet.html), to see how this has to implemented. \n",
"Build a DeepONet consisting of a fully connected TrunkNet and BranchNet. Check the `TorchPhysics` [documentation](https://boschresearch.github.io/torchphysics/tutorial/tutorial_start.html), to see how this has to implemented. \n",
"\n",
"Both (TrunkNet and BranchNet) should have 3 hidden layers with 25 neurons each. The output of both networks should be 30 neurons."
]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ long_description_content_type = text/x-rst; charset=UTF-8
url = https://github.com/boschresearch/torchphysics
# Add here related links, for example:
project_urls =
Documentation = https://torchphysics.readthedocs.io/en/latest/
Documentation = https://boschresearch.github.io/torchphysics/index.html
Source = https://github.com/boschresearch/torchphysics
Changelog = https://github.com/boschresearch/torchphysics/blob/main/CHANGELOG.rst
# Tracker = https://github.com/pyscaffold/pyscaffold/issues
Expand Down
2 changes: 1 addition & 1 deletion src/torchphysics/problem/conditions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
A tutorial on the usage of Conditions can be found here_.
.. _here: https://torchphysics.readthedocs.io/en/latest/tutorial/condition_tutorial.html
.. _here: https://boschresearch.github.io/torchphysics/tutorial/tutorial_start.html
"""

from .condition import (Condition,
Expand Down

0 comments on commit ba06977

Please sign in to comment.