Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remedy broken api documentation references #2006

Merged
merged 6 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ if "%SPHINXBUILD%" == "" (
)
set SOURCEDIR=source
set BUILDDIR=build
set SPHINXOPTS=-n

if "%1" == "" goto help
if "%1" == "clean" goto clean
Expand Down
2 changes: 1 addition & 1 deletion doc/source/user_guide/custom_operators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -249,5 +249,5 @@ Once the plugin is loaded, you can instantiate the custom operator:

References
----------
For more information, see :ref:`ref_custom_operator` in the **API reference**
For more information, see :py:mod:`Custom Operator Base <ansys.dpf.core.custom_operator>` in the **API reference**
and :ref:`python_operators` in **Examples**.
4 changes: 2 additions & 2 deletions doc/source/user_guide/fields_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -574,5 +574,5 @@ For comprehensive information on chaining operators, see :ref:`ref_user_guide_op

API reference
-------------
For more information, see :ref:`ref_fields_container` and
:ref:`ref_field` in the **API reference**.
For more information, see :py:mod:`FieldsContainer <ansys.dpf.core.fields_container>` and
:py:mod:`Field <ansys.dpf.core.field>` in the **API reference**.
8 changes: 4 additions & 4 deletions doc/source/user_guide/model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ To understand what is available in the result file, you can print the model

For a comprehensive model example, see :ref:`ref_basic_example`.

For a description of the ``Model`` object, see :ref:`ref_model`.
For a description of the ``Model`` object, see :py:mod:`Model <ansys.dpf.core.model>`.


Model metadata
Expand Down Expand Up @@ -125,7 +125,7 @@ This example shows how you get time sets:
[1.]


For a description of the ``Metadata`` object, see :ref:`ref_model`.
For a description of the ``Metadata`` object, see :py:mod:`Model <ansys.dpf.core.model>`.

Model results
-------------
Expand Down Expand Up @@ -176,11 +176,11 @@ the mesh scoping:

For an example using the ``Result`` object, see :ref:`ref_transient_easy_time_scoping`.

For a description of the ``Model`` object, see :ref:`ref_results`.
For a description of the ``Model`` object, see :py:mod:`Model <ansys.dpf.core.model>`.



API reference
~~~~~~~~~~~~~

For more information, see :ref:`ref_model` or :ref:`ref_results`.
For more information, see :py:mod:`Model <ansys.dpf.core.model>` or :py:mod:`Results <ansys.dpf.core.results>`.
14 changes: 7 additions & 7 deletions doc/source/user_guide/operators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ which is progressively enhanced, see :ref:`ref_dpf_operators_reference`.

Create operators
~~~~~~~~~~~~~~~~
Each operator is of type :ref:`ref_operator`. You can create an instance
Each operator is of type :py:mod:`Operator <ansys.dpf.core.dpf_operator>`. You can create an instance
in Python with any of the derived classes available in the
:ref:`ansys.dpf.core.operators package` or directly with the :ref:`ref_operator`
:py:mod:`ansys.dpf.core.operators` package or directly with the :py:mod:`Operator <ansys.dpf.core.dpf_operator>`
class using the internal name string that indicates the operator type.
For more information, see :ref:`ref_dpf_operators_reference`.

Expand Down Expand Up @@ -123,8 +123,8 @@ results, you must provide paths for the result files.

You can create data sources in two ways:

- Use the :ref:`ref_model` class.
- Use the :ref:`ref_data_sources` class.
- Use the :py:mod:`Model <ansys.dpf.core.model>` class.
- Use the :py:mod:`Data Sources <ansys.dpf.core.data_sources>` class.


Because several other examples use the ``Model`` class, this example uses the
Expand Down Expand Up @@ -154,7 +154,7 @@ This code demonstrates how to connect the data source to the displacement operat
op.inputs.data_sources(data_src)

You can connect other optional inputs to the displacement operator.
The output from printing the operator shows that a ``mesh_scoping`` of type :ref:`ref_scoping`
The output from printing the operator shows that a ``mesh_scoping`` of type :py:mod:`Scoping <ansys.dpf.core.scoping>`
can be connected to work on a spatial subset. A ``time_scoping`` of a list of integers
can also be connected to work on a temporal subset:

Expand Down Expand Up @@ -441,5 +441,5 @@ Python client is not on the same machine as the server:
API reference
~~~~~~~~~~~~~
For a list of all operators in DPF, see :ref:`ref_dpf_operators_reference`
or the package :ref:`ansys.dpf.core.operators package`. For more information about the
class itself, see :ref:`ref_operator`.
or the package :py:mod:`ansys.dpf.core.operators`. For more information about the
class itself, see :py:mod:`Operator <ansys.dpf.core.dpf_operator>`.
25 changes: 25 additions & 0 deletions src/ansys/dpf/core/helpers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (C) 2020 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
"""Provide helpers relating to streamline computation, argument filtering, and text indenting."""

from .streamlines import *
from .utils import *
1 change: 0 additions & 1 deletion src/ansys/dpf/core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
Model.

Module contains the Model class to manage file result models.

"""

from __future__ import annotations
Expand Down
Loading