Skip to content

Commit d87480c

Browse files
committed
spelling
1 parent db9002a commit d87480c

File tree

15 files changed

+29
-29
lines changed

15 files changed

+29
-29
lines changed

ansys/dpf/core/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def integral_collection(inpt, server: server.DpfServer = None):
8383
Parameters
8484
----------
8585
inpt : list[float], list[int], numpy.array
86-
list to transfert server side
86+
list to transfer server side
8787
8888
Returns
8989
-------

ansys/dpf/core/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def download_file(self, server_file_path, to_client_file_path):
477477
Parameters
478478
----------
479479
server_file_path : str
480-
file path to dowload on the server side
480+
file path to download on the server side
481481
482482
to_client_file_path: str
483483
file path target where the file will be located client side

ansys/dpf/core/dpf_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def __sub__(self, fields_b):
466466

467467
def __pow__(self, value):
468468
if value != 2:
469-
raise ValueError('Only the value "2" is suppported.')
469+
raise ValueError('Only the value "2" is supported.')
470470
from ansys.dpf.core import dpf_operator, operators
471471

472472
if hasattr(operators, "math") and hasattr(operators.math, "sqr_fc"):

ansys/dpf/core/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(self, msg=_FIELD_CONTAINER_PLOTTING_MSG):
7171

7272

7373
class InvalidANSYSVersionError(RuntimeError):
74-
"""Error raised when the Ansys verion is invalid."""
74+
"""Error raised when the Ansys version is invalid."""
7575

7676
def __init__(self, msg=""):
7777
RuntimeError.__init__(self, msg)

ansys/dpf/core/examples/downloads.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def download_fluent_files() -> dict:
317317

318318
def download_extrapolation_3d_result() -> dict:
319319
"""Download example static results of reference and integrated points
320-
for extrapolation of 3d-element and return return the dictionary of 2 download paths.
320+
for extrapolation of 3d-element and return return the dictionnary of 2 download paths.
321321
322322
Examples files are downloaded to a persistent cache to avoid
323323
re-downloading the same file twice.
@@ -330,7 +330,7 @@ def download_extrapolation_3d_result() -> dict:
330330
331331
Examples
332332
--------
333-
Download 2 example result files and return the dictionary containing 2 files
333+
Download 2 example result files and return the dictionnary containing 2 files
334334
335335
>>> from ansys.dpf.core import examples
336336
>>> dict = examples.download_extrapolation_ref_result
@@ -351,7 +351,7 @@ def download_extrapolation_3d_result() -> dict:
351351

352352
def download_extrapolation_2d_result() -> dict:
353353
"""Download example static results of reference and integrated points
354-
for extrapolation of 2d-element and return the dictionary of 2 download paths.
354+
for extrapolation of 2d-element and return the dictionnary of 2 download paths.
355355
356356
Examples files are downloaded to a persistent cache to avoid
357357
re-downloading the same file twice.
@@ -364,7 +364,7 @@ def download_extrapolation_2d_result() -> dict:
364364
365365
Examples
366366
--------
367-
Download 2 example result files and return the dictionary containing 2 files
367+
Download 2 example result files and return the dictionnary containing 2 files
368368
369369
>>> from ansys.dpf.core import examples
370370
>>> dict = examples.download_extrapolation_ref_result

ansys/dpf/core/meshed_region.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def _as_vtk(self, as_linear=True, include_ids=False):
337337

338338
@property
339339
def grid(self):
340-
"""Unstructured grid in VTK fromat from PyVista.
340+
"""Unstructured grid in VTK format from PyVista.
341341
342342
Returns
343343
-------

ansys/dpf/core/operators/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def build_operator(
189189
if "." in scripting_name:
190190
scripting_name = scripting_name.split(".")[-1]
191191

192-
# Get python class name fron scripting name
192+
# Get python class name from scripting name
193193
capital_class_name = common._snake_to_camel_case(scripting_name)
194194

195195
# Write to operator file

ansys/dpf/core/scoping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def index(self, id: int):
254254

255255
@property
256256
def ids(self):
257-
"""Retrive a list of IDs in the scoping.
257+
"""Retrieve a list of IDs in the scoping.
258258
259259
Returns
260260
-------

ansys/dpf/core/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def connect_to_server(ip=LOCALHOST, port=DPF_DEFAULT_PORT, as_global=True, timeo
240240
"""Connect to an existing DPF server.
241241
242242
This method sets the global default channel that is then used for the
243-
duration of the DPF sesssion.
243+
duration of the DPF session.
244244
245245
Parameters
246246
----------
@@ -255,7 +255,7 @@ def connect_to_server(ip=LOCALHOST, port=DPF_DEFAULT_PORT, as_global=True, timeo
255255
module. All DPF objects created in this Python session will
256256
use this IP and port. The default is ``True``.
257257
timeout : float, optional
258-
Maximum number of seconds for the initalization attempt.
258+
Maximum number of seconds for the initialization attempt.
259259
The default is ``10``. Once the specified number of seconds
260260
passes, the connection fails.
261261
@@ -297,7 +297,7 @@ class DpfServer:
297297
Port to connect to the remote instance on. The default is
298298
``"DPF_DEFAULT_PORT"``, which is 50054.
299299
timeout : float, optional
300-
Maximum number of seconds for the initalization attempt.
300+
Maximum number of seconds for the initialization attempt.
301301
The default is ``10``. Once the specified number of seconds
302302
passes, the connection fails.
303303
as_global : bool, optional
@@ -584,7 +584,7 @@ def launch_dpf(ansys_path, ip=LOCALHOST, port=DPF_DEFAULT_PORT, timeout=10, dock
584584
Port to connect to the remote instance on. The default is
585585
``"DPF_DEFAULT_PORT"``, which is 50054.
586586
timeout : float, optional
587-
Maximum number of seconds for the initalization attempt.
587+
Maximum number of seconds for the initialization attempt.
588588
The default is ``10``. Once the specified number of seconds
589589
passes, the connection fails.
590590
docker_name : str, optional

ansys/dpf/core/session.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,23 +48,23 @@ def __send_init_request(self):
4848
self._message = self._stub.Create(request)
4949

5050
@version_requires("3.0")
51-
def add_workflow(self, worflow, identifier):
51+
def add_workflow(self, workflow, identifier):
5252
"""Add a workflow to the session. It allows to follow the workflow's
5353
events while it's running.
5454
This method is automatically called when a workflow's output
5555
is requested.
5656
5757
Parameters
5858
----------
59-
worflow : Workflow
59+
workflow : Workflow
6060
6161
identifier : str
6262
name given to the workflow
6363
"""
6464
from ansys.grpc.dpf import session_pb2
6565
request = session_pb2.AddRequest()
6666
request.session.CopyFrom(self._message)
67-
request.wf.CopyFrom(worflow._message)
67+
request.wf.CopyFrom(workflow._message)
6868
request.identifier = identifier
6969
self._stub.Add(request)
7070

@@ -96,7 +96,7 @@ def add_operator(self, operator, pin, identifier):
9696

9797
@version_requires("3.0")
9898
def listen_to_progress(self):
99-
"""Starts a progress bar and update it everytime an operator is
99+
"""Starts a progress bar and update it every time an operator is
100100
finished.
101101
"""
102102
service = self._stub.ListenToProgress(self._message)

0 commit comments

Comments
 (0)