Skip to content

Commit da2e685

Browse files
updates in the DataSources api reference
1 parent b29f6bb commit da2e685

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

src/ansys/dpf/core/data_sources.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ class DataSources:
6363
6464
Parameters
6565
----------
66-
result_path :
66+
result_path
6767
Path of the result. The default is ``None``.
68-
data_sources :
68+
data_sources
6969
gRPC data sources message. The default is ``None``.
70-
server :
70+
server
7171
Server with the channel connected to the remote or local instance. The
7272
default is ``None``, in which case an attempt is made to use the global
7373
server.
@@ -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.
@@ -186,12 +186,12 @@ def guess_result_key(filepath: str) -> str:
186186
187187
Parameters
188188
----------
189-
filepath :
189+
filepath
190190
Path to the file.
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
@@ -275,11 +275,11 @@ def set_domain_result_file_path(
275275
276276
Parameters
277277
----------
278-
path :
278+
path
279279
Path to the file.
280-
domain_id :
280+
domain_id
281281
Domain ID for the distributed files.
282-
key :
282+
key
283283
Key to associate to the file.
284284
285285
Examples
@@ -316,15 +316,15 @@ def add_file_path(
316316
317317
Parameters
318318
----------
319-
filepath :
319+
filepath
320320
Path of the file.
321-
key :
321+
key
322322
Extension of the file, which is used as a key for choosing the correct
323323
plugin when a result is requested by an operator. The default is ``""``,
324324
in which case the key is found directly.
325-
is_domain :
325+
is_domain
326326
Whether the file path is the domain path. The default is ``False``.
327-
domain_id :
327+
domain_id
328328
Domain ID for the distributed files. The default is ``0``. For this
329329
parameter to be taken into account, ``domain_path=True`` must be set.
330330
@@ -369,12 +369,12 @@ def add_domain_file_path(
369369
370370
Parameters
371371
----------
372-
filepath :
372+
filepath
373373
Path of the file.
374-
key :
374+
key
375375
Extension of the file, which is used as a key for choosing the correct
376376
plugin when a result is requested by an operator.
377-
domain_id :
377+
domain_id
378378
Domain ID for the distributed files.
379379
380380
Examples
@@ -413,13 +413,13 @@ def add_file_path_for_specified_result(
413413
414414
Parameters
415415
----------
416-
filepath :
416+
filepath
417417
Path of the file.
418-
key :
418+
key
419419
Extension of the file, which is used as a key for choosing the correct
420420
plugin when a result is requested by an operator. The default is ``""``,
421421
in which case the key is found directly.
422-
result_key :
422+
result_key
423423
Extension of the results file that the specified file path belongs to.
424424
The default is ``""``, in which case the key is found directly.
425425
@@ -443,10 +443,10 @@ def add_upstream(
443443
444444
Parameters
445445
----------
446-
upstream_data_sources :
446+
upstream_data_sources
447447
Set of paths creating an upstream for recursive workflows.
448448
449-
result_key :
449+
result_key
450450
Extension of the result file group with which this upstream belongs
451451
452452
Examples
@@ -489,10 +489,10 @@ def add_upstream_for_domain(self, upstream_data_sources: DataSources, domain_id:
489489
490490
Parameters
491491
----------
492-
upstream_data_sources :
492+
upstream_data_sources
493493
Set of paths creating an upstream for recursive workflows.
494494
495-
domain_id :
495+
domain_id
496496
Domain id for distributed files.
497497
498498
Examples
@@ -657,10 +657,10 @@ def register_namespace(self, result_key: str, namespace: str):
657657
658658
Parameters
659659
----------
660-
result_key :
660+
result_key
661661
Extension of the file, which is used as a key for choosing the correct
662662
plugin when a result is requested by an operator.
663-
namespace :
663+
namespace
664664
Namespace to associate the file extension to.
665665
666666
Notes

0 commit comments

Comments
 (0)