Skip to content

Commit 62968cd

Browse files
committed
fix docstrings
1 parent 01e5bf6 commit 62968cd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ansys/dpf/core/generic_support.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ class GenericSupport(Support):
3434
>>> field = dpf.PropertyField(location="phase", nature=dpf.natures.scalar)
3535
>>> support.set_support_of_property("type", field)
3636
>>> support.available_field_supported_properties()
37+
['viscosity']
3738
>>> support.available_string_field_supported_properties()
39+
['names']
3840
>>> support.available_prop_field_supported_properties()
41+
['type']
3942
>>> field = support.field_support_by_property("viscosity")
4043
4144
Notes
@@ -44,7 +47,6 @@ class GenericSupport(Support):
4447
"""
4548

4649
def __init__(self, name: str = "", generic_support=None, server=None):
47-
"""Initialize the TimeFreqSupport with its TimeFreqSupport message (if possible)."""
4850
super(GenericSupport, self).__init__(support=generic_support, server=server)
4951

5052
if not self._server.meet_version("5.0"):

ansys/dpf/core/support.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ class Support:
3636
>>> transient = examples.download_transient_result()
3737
>>> model = Model(transient)
3838
>>> time_freq_support = model.metadata.time_freq_support # printable
39-
>>> time_freq_support.
39+
>>> time_freq_support.available_field_supported_properties()
40+
['time_freqs']
41+
>>> field = time_freq_support.field_support_by_property("time_freqs")
4042
4143
"""
4244

0 commit comments

Comments
 (0)