Skip to content

Commit 3c39faa

Browse files
committed
modifs from review
1 parent 04fb70a commit 3c39faa

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/ansys/dpf/core/cyclic_support.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def expand_element_id(self, element_id, sectors=None, stage_num=0):
305305
)
306306
return Scoping(scoping=expanded_ids, server=self._server)
307307

308-
def cs(self):
308+
def cs(self) -> field.Field:
309309
"""Coordinate system of the cyclic support.
310310
311311
Examples
@@ -315,25 +315,24 @@ def cs(self):
315315
>>> multi_stage = examples.download_multi_stage_cyclic_result()
316316
>>> cyc_support = Model(multi_stage).metadata.result_info.cyclic_support
317317
>>> cs = cyc_support.cs()
318-
>>> print(expanded_scoping.ids)
319318
[12]
320319
"""
321320

322321
cs = self._api.cyclic_support_get_cs(self)
323322
return field.Field(field=cs, server=self._server)
324323

325-
def low_high_map(self, stage_num=0):
324+
def low_high_map(self, stage_num: int = 0) -> property_field.PropertyField:
326325
"""Retrieve a property field containing node map from low to high
327326
base sector of the given stage.
328327
329328
Parameters
330329
----------
331-
stage_num : int, optional
330+
stage_num:
332331
Number of the stage required (from 0 to num_stages).
333332
334333
Returns
335334
-------
336-
low_high_map : PropertyField
335+
low_high_map:
337336
Node correspondence between low to high in the base sector of the given stage.
338337
339338
Examples
@@ -348,18 +347,18 @@ def low_high_map(self, stage_num=0):
348347
low_high_map = self._api.cyclic_support_get_low_high_map(self, stage_num)
349348
return property_field.PropertyField(property_field=low_high_map, server=self._server)
350349

351-
def high_low_map(self, stage_num=0):
350+
def high_low_map(self, stage_num: int = 0) -> property_field.PropertyField:
352351
"""Retrieve a property field containing node map from high to low
353352
base sector of the given stage.
354353
355354
Parameters
356355
----------
357-
stage_num : int, optional
356+
stage_num:
358357
Number of the stage required (from 0 to num_stages).
359358
360359
Returns
361360
-------
362-
low_high_map : PropertyField
361+
low_high_map:
363362
Node correspondence between high to low in the base sector of the given stage.
364363
365364
Examples

0 commit comments

Comments
 (0)