Skip to content

Commit b58b329

Browse files
anslpaPProfiziRevathyvenugopal162MaxJPReyPipKat
authored
Documentation: Doc/several operators page (#646)
* Now two Operators pages are available. Still have to add the drop-down menu. * Explain server contexts * Script used to generate both entry and premium docs * Link to newly generated dpf_entry.html and premium_entry.html in _static * Fix flake8 * Add card for the operators * Add correct path to images * Apply suggestions from code review Co-authored-by: Maxime Rey <[email protected]> * Add back static html pages * Rework Operators landing page. * Update operator_reference.rst * Update text * Update entry and premium docs * Some PR comments * Last comments * Apply suggestions from code review Co-authored-by: Kathy Pippert <[email protected]> * Apply suggestions from code review Co-authored-by: Kathy Pippert <[email protected]> * Remove images for operators * update entry and premium docs * Style check Co-authored-by: paul.profizi <[email protected]> Co-authored-by: Revathyvenugopal162 <[email protected]> Co-authored-by: Revathy Venugopal <[email protected]> Co-authored-by: Maxime Rey <[email protected]> Co-authored-by: PProfizi <[email protected]> Co-authored-by: Kathy Pippert <[email protected]>
1 parent d85abea commit b58b329

12 files changed

+3643
-86
lines changed

.ci/operator_doc_per_context.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import ansys.dpf.core as dpf
2+
from ansys.dpf.core.server_context import \
3+
apply_server_context, AvailableServerContexts, SERVER_CONTEXT
4+
5+
print(f"Server version: {dpf.global_server().version}")
6+
# Generate entry documentation
7+
print("Generating entry operator documentation")
8+
print(f"Current context: {SERVER_CONTEXT}")
9+
dpf.operators.utility.html_doc(r"../docs/source/_static/dpf_entry.html").eval()
10+
print("Done.\n")
11+
12+
# Generate premium documentation
13+
print("Generating premium operator documentation")
14+
apply_server_context(AvailableServerContexts.premium)
15+
print(f"Current context: {SERVER_CONTEXT}")
16+
dpf.operators.utility.html_doc(r"../docs/source/_static/dpf_premium.html").eval()
17+
print("Done.\n")

ansys/dpf/core/custom_type_field.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def __missing__(self, key):
3838

3939
class CustomTypeField(_FieldBase):
4040
"""Represents a simulation data container with each unitary data being of a custom type.
41-
When initiliazing the CustomTypeField, a unitary data type should be given.
42-
The ``CustomTypeField`` gives the ability to choose the most optimized unitary data type
43-
for a given usage, and hence, allows to optimize memory usage.
41+
When initializing the ``CustomTypeField`` class, provide a unitary data type.
42+
The ``CustomTypeField`` class gives you the ability to choose the most optimized unitary
43+
data type for a given usage, and hence, allows you to optimize memory usage.
4444
4545
This can be evaluated data from the :class:`Operator <ansys.dpf.core.Operator>` class
4646
or created directly by an instance of this class.

ansys/dpf/core/elements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ def mapping_id_to_index(self) -> dict:
615615
"""
616616
Mapping between the IDs and indices of the entity.
617617
618-
This proprty is useful for mapping scalar results from a field to the meshed region.
618+
This property is useful for mapping scalar results from a field to the meshed region.
619619
620620
Examples
621621
--------

ansys/dpf/core/server_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def replace_with_mounted_volumes(self, path: str) -> str:
465465
Parameters
466466
----------
467467
path: str
468-
Path to search for mounted volumes occurrences.
468+
Path to search for occurrences of mounted volumes.
469469
470470
Returns
471471
-------

0 commit comments

Comments
 (0)