Skip to content

Commit 5542b14

Browse files
updates in the DataSources api reference
1 parent 2cc7c15 commit 5542b14

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/ansys/dpf/core/data_sources.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ def set_result_file_path(
142142
143143
Parameters
144144
----------
145-
filepath:
145+
filepath :
146146
Path to the result file.
147-
key:
147+
key :
148148
Extension of the file, which is used as a key for choosing the correct
149149
plugin when a result is requested by an operator. The default is ``""``,
150150
in which case the key is found directly.
@@ -191,7 +191,7 @@ def guess_result_key(filepath: str) -> str:
191191
192192
Returns
193193
-------
194-
str:
194+
str :
195195
Extension key name
196196
197197
Examples
@@ -227,12 +227,12 @@ def guess_second_key(filepath: str) -> str:
227227
228228
Parameters
229229
----------
230-
filepath:
230+
filepath :
231231
Path to the file.
232232
233233
Returns
234234
-------
235-
str:
235+
str :
236236
First extension key name
237237
238238
Examples
@@ -276,11 +276,11 @@ def set_domain_result_file_path(
276276
277277
Parameters
278278
----------
279-
path:
279+
path :
280280
Path to the file.
281-
domain_id:
281+
domain_id :
282282
Domain ID for the distributed files.
283-
key:
283+
key :
284284
Key to associate to the file.
285285
286286
Examples
@@ -317,15 +317,15 @@ def add_file_path(
317317
318318
Parameters
319319
----------
320-
filepath:
320+
filepath :
321321
Path of the file.
322-
key:
322+
key :
323323
Extension of the file, which is used as a key for choosing the correct
324324
plugin when a result is requested by an operator. The default is ``""``,
325325
in which case the key is found directly.
326-
is_domain:
326+
is_domain :
327327
Whether the file path is the domain path. The default is ``False``.
328-
domain_id:
328+
domain_id :
329329
Domain ID for the distributed files. The default is ``0``. For this
330330
parameter to be taken into account, ``domain_path=True`` must be set.
331331
@@ -370,12 +370,12 @@ def add_domain_file_path(
370370
371371
Parameters
372372
----------
373-
filepath:
373+
filepath :
374374
Path of the file.
375-
key:
375+
key :
376376
Extension of the file, which is used as a key for choosing the correct
377377
plugin when a result is requested by an operator.
378-
domain_id:
378+
domain_id :
379379
Domain ID for the distributed files.
380380
381381
Examples
@@ -420,7 +420,7 @@ def add_file_path_for_specified_result(
420420
Extension of the file, which is used as a key for choosing the correct
421421
plugin when a result is requested by an operator. The default is ``""``,
422422
in which case the key is found directly.
423-
result_key:
423+
result_key :
424424
Extension of the results file that the specified file path belongs to.
425425
The default is ``""``, in which case the key is found directly.
426426
@@ -444,10 +444,10 @@ def add_upstream(
444444
445445
Parameters
446446
----------
447-
upstream_data_sources:
447+
upstream_data_sources :
448448
Set of paths creating an upstream for recursive workflows.
449449
450-
result_key:
450+
result_key :
451451
Extension of the result file group with which this upstream belongs
452452
453453
Examples
@@ -493,7 +493,7 @@ def add_upstream_for_domain(self, upstream_data_sources: DataSources, domain_id:
493493
upstream_data_sources :
494494
Set of paths creating an upstream for recursive workflows.
495495
496-
domain_id:
496+
domain_id :
497497
Domain id for distributed files.
498498
499499
Examples
@@ -538,7 +538,7 @@ def result_key(self) -> str:
538538
539539
Returns
540540
-------
541-
str:
541+
str :
542542
Result key.
543543
544544
Examples
@@ -563,7 +563,7 @@ def result_files(self):
563563
564564
Returns
565565
----------
566-
list:
566+
list :
567567
List of result files.
568568
569569
Examples
@@ -658,10 +658,10 @@ def register_namespace(self, result_key: str, namespace: str):
658658
659659
Parameters
660660
----------
661-
result_key:
661+
result_key :
662662
Extension of the file, which is used as a key for choosing the correct
663663
plugin when a result is requested by an operator.
664-
namespace:
664+
namespace :
665665
Namespace to associate the file extension to.
666666
667667
Notes
@@ -688,7 +688,7 @@ def __str__(self):
688688
689689
Returns
690690
-------
691-
str:
691+
str :
692692
Description of the entity.
693693
"""
694694
from ansys.dpf.core.core import _description

0 commit comments

Comments
 (0)