File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ class LicenseContextManager:
118118 Examples
119119 --------
120120 Using a context manager
121+
121122 >>> from ansys.dpf import core as dpf
122123 >>> dpf.set_default_server_context(dpf.AvailableServerContexts.premium)
123124 >>> field = dpf.Field()
@@ -129,13 +130,15 @@ class LicenseContextManager:
129130 ... out = op.outputs.field()
130131
131132 Using an instance
133+
132134 >>> lic = dpf.LicenseContextManager()
133135 >>> op.inputs.field(field)
134136 >>> op.inputs.threshold(0.0)
135137 >>> out = op.outputs.field()
136138 >>> lic = None
137139
138140 Using a context manager and choosing license options
141+
139142 >>> op.inputs.field(field)
140143 >>> op.inputs.threshold(0.0)
141144 >>> out = op.outputs.field()
@@ -149,6 +152,7 @@ class LicenseContextManager:
149152 Notes
150153 -----
151154 Available from 6.1 server version.
155+
152156 """
153157
154158 def __init__ (
You can’t perform that action at this time.
0 commit comments