Skip to content

Commit 478c9ab

Browse files
committed
Edits to RST files and only resolve Vale issues in PY files
1 parent 57b7a31 commit 478c9ab

23 files changed

+548
-232
lines changed

README.rst

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,33 @@ PyHPS
3131
:alt: Black
3232

3333

34-
A Python client library for the Ansys HPC Platform Services.
34+
PyHPS is a Python client library for Ansys HPC Platform Services (HPS), which is
35+
a set of technology components designed to help you manage the execution of simulations
36+
while making use of your full range of computing assets.
3537

38+
PyHPS brings Ansys HPS to your Python app. Wrapping around the HPS REST APIs, PyHPS allows you to:
39+
40+
* Create projects and modify existing ones.
41+
* Monitor and manage jobs.
42+
* Run your own design exploration algorithms .
43+
* Retrieve simulation results.
44+
45+
Documentation
46+
-------------
47+
The `PyHPS documentation <https://rep.docs.pyansys.com/>`_ contains these sections:
48+
49+
- `Getting started <https://rep.docs.pyansys.com/dev/getting-started/index.html>`_: Explains
50+
how to install PyHPS in user mode.
51+
- `User guide <https://rep.docs.pyansys.com/dev/user_guide/index.html>`_: Describes how to use
52+
PyHPS to interact with Ansys HPS.
53+
- `Examples <https://rep.docs.pyansys.com/dev/examples/index.html>`: Provides examples of how
54+
to interact with a REP server in Python using PyHPS.
55+
- `API reference <https://rep.docs.pyansys.com/dev/api/index.html>`_: Describes PyHPS functions,
56+
classes, methods, and their parameters and return values so that you understand how to interact
57+
with them programmatically
58+
- `Contribute <https://rep.docs.pyansys.com/dev/contribute.html>`: Provides information on
59+
how to install PyHPS in developer mode and make contributions to the codebase.
60+
3661
How to install
3762
--------------
3863

doc/.vale.ini

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ Vocab = ANSYS
2626

2727
# Apply the following styles
2828
BasedOnStyles = Vale, Google
29+
30+
TokenIgnores = (:(func|class|meth|attr|py):`(?:.|\n)*?`)|(<.*>)
31+
32+
# Removing Google-specific rule - Not applicable under some circumstances
33+
Google.Colons = NO
34+
Google.Headings = NO
35+
Google.Spacing = NO

doc/source/_static/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Static files will be found here (like images and other assets).
1+
Static files (like images and other assets) are found here.

doc/source/api/exceptions.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Exceptions
2-
===========================
2+
==========
33

4-
HTTP requests returning an unsuccessful status code will raise:
4+
HTTP requests returning an unsuccessful status code raise one of these exceptions:
55

6-
* :exc:`ansys.hps.client.ClientError` for client errors (4xx status code, e.g. bad syntax or not found)
7-
* :exc:`ansys.hps.client.APIError` for server errors (5xx status code, e.g. internal server error or not implemented)
6+
* :exc:`ansys.hps.client.ClientError` for client errors (4xx status code), such as include bad syntax or not found.
7+
* :exc:`ansys.hps.client.APIError` for server errors (5xx status code), such as internal server errors or not implemented.
88

99
All exceptions that the Ansys REP clients explicitly raise inherit from :exc:`ansys.hps.client.HPSError`.
1010

doc/source/api/index.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
.. _api_reference:
22

3-
Code Documentation
4-
===========================
3+
API reference
4+
=============
55

6-
If you are looking for information on a specific function, class, or method, this part of the documentation is for you.
6+
This section describes PyHPS functions, classes, methods, and their parameters and return values
7+
so that you understand how to interact with them programmatically.
78

89
.. toctree::
910
:maxdepth: 3

doc/source/api/jms.rst

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,47 @@
11
Job Management Service
2-
===========================
2+
======================
33

4-
Ansys REP includes Job Management Service (JMS), which is the main service for storing and evaluating jobs using multiple heterogeneous compute resources.
4+
Ansys REP includes Job Management Service (JMS), which is the main service for storing
5+
and evaluating jobs using multiple heterogeneous compute resources.
56

6-
The Python subpackage ``ansys.hps.client.jms`` wraps around the JMS service REST API available at ``https://hostname:port/rep/jms/api``.
7+
The ``ansys.hps.client.jms`` Python subpackage wraps around the JMS service REST API,
8+
which is available at ``https://hostname:port/rep/jms/api``.
79

810
APIs
9-
--------------------------------------
11+
----
1012

11-
JMS Api
12-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13+
JMS API
14+
^^^^^^^
1315
.. autoclass:: ansys.hps.client.jms.JmsApi
1416
:members:
1517
:undoc-members:
1618

17-
Project Api
18-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19+
Project API
20+
^^^^^^^^^^^
1921
.. autoclass:: ansys.hps.client.jms.ProjectApi
2022
:members:
2123
:undoc-members:
2224

2325

2426
Resources
25-
--------------------------------------
27+
---------
2628

2729
File
28-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30+
^^^^
2931

3032
.. autoclass:: ansys.hps.client.jms.File
3133
:members:
3234

3335
Project
34-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36+
^^^^^^^
3537

3638
.. autoclass:: ansys.hps.client.jms.Project
3739
:members:
3840
:undoc-members:
3941
:exclude-members: Meta
4042

41-
Fitness Definition
42-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43+
Fitness definition
44+
^^^^^^^^^^^^^^^^^^
4345

4446
.. autoclass:: ansys.hps.client.jms.FitnessTermDefinition
4547
:members:
@@ -49,7 +51,7 @@ Fitness Definition
4951

5052

5153
Parameters
52-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54+
^^^^^^^^^^
5355

5456
.. autoclass:: ansys.hps.client.jms.FloatParameterDefinition
5557
:members:
@@ -66,8 +68,8 @@ Parameters
6668
.. autoclass:: ansys.hps.client.jms.ParameterMapping
6769
:members:
6870

69-
Task Definition
70-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
71+
Task definition
72+
^^^^^^^^^^^^^^^
7173

7274
.. autoclass:: ansys.hps.client.jms.Software
7375
:members:
@@ -85,37 +87,37 @@ Task Definition
8587
:members:
8688

8789

88-
Job Definition
89-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90+
Job definition
91+
^^^^^^^^^^^^^^
9092

9193
.. autoclass:: ansys.hps.client.jms.JobDefinition
9294
:members:
9395
:undoc-members:
9496
:exclude-members: Meta
9597

9698
Task
97-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
99+
^^^^
98100

99101
.. autoclass:: ansys.hps.client.jms.Task
100102
:members:
101103

102104

103105
Job
104-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106+
^^^
105107

106108
.. autoclass:: ansys.hps.client.jms.Job
107109
:members:
108110

109111

110-
Job Selection
111-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112+
Job selection
113+
^^^^^^^^^^^^^
112114

113115
.. autoclass:: ansys.hps.client.jms.JobSelection
114116
:members:
115117

116118

117-
Design Exploration Algorithm
118-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119+
Design exploration algorithm
120+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119121

120122
.. autoclass:: ansys.hps.client.jms.Algorithm
121123
:members:
@@ -128,8 +130,8 @@ Evaluator
128130
:members:
129131

130132

131-
Task Definition Template
132-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133+
Task definition template
134+
^^^^^^^^^^^^^^^^^^^^^^^^
133135

134136
.. autoclass:: ansys.hps.client.jms.TemplateProperty
135137
:members:

doc/source/api/rms.rst

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,46 @@
11
Resource Management Service
22
===========================
33

4-
Ansys REP includes the Resource Management Service (JMS), which is the main service for managing heterogeneous compute resources.
4+
Ansys REP includes the Resource Management Service (RMS), which is the main service
5+
for managing heterogeneous compute resources.
56

6-
The Python subpackage ``ansys.hps.client.rms`` wraps around the RMS service REST API available at ``https://hostname:port/rep/rms/api``.
7+
The ``ansys.hps.client.rms`` Python subpackage wraps around the RMS service REST API, which
8+
is available at ``https://hostname:port/rep/rms/api``.
79

810
APIs
9-
--------------------------------------
11+
----
1012

11-
RMS Api
12-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13+
RMS API
14+
^^^^^^^
1315
.. autoclass:: ansys.hps.client.rms.RmsApi
1416
:members:
1517
:undoc-members:
1618

1719

1820
Resources
19-
--------------------------------------
21+
---------
2022

21-
Evaluator Registration
22-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23+
Evaluator registration
24+
^^^^^^^^^^^^^^^^^^^^^^
2325

2426
.. autopydantic_model:: ansys.hps.client.rms.EvaluatorRegistration
2527

26-
Evaluator Configuration
27-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28+
Evaluator configuration
29+
^^^^^^^^^^^^^^^^^^^^^^^
2830

2931
.. autopydantic_model:: ansys.hps.client.rms.EvaluatorConfiguration
3032

31-
Evaluator Configuration Update
32-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33+
Evaluator configuration update
34+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3335

3436
.. autopydantic_model:: ansys.hps.client.rms.EvaluatorConfigurationUpdate
3537

36-
Scaler Configuration
37-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
38+
Scaler configuration
39+
^^^^^^^^^^^^^^^^^^^^
3840

3941
.. autopydantic_model:: ansys.hps.client.rms.ScalerRegistration
4042

41-
Compute Resource Set
42-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43+
Compute resource set
44+
^^^^^^^^^^^^^^^^^^^^
4345

4446
.. autopydantic_model:: ansys.hps.client.rms.ComputeResourceSet

0 commit comments

Comments
 (0)