Skip to content

Commit 397ce3f

Browse files
authored
Merge branch 'main' into feat/support-windows-based-containers
2 parents 2ed7406 + f43d366 commit 397ce3f

File tree

5 files changed

+4
-36
lines changed

5 files changed

+4
-36
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -206,39 +206,3 @@ jobs:
206206
DOCSTRING: false
207207
standalone_suffix: ${{ matrix.version == '241' && '.sp01' || '' }}
208208
secrets: inherit
209-
210-
sync-main-with-master:
211-
name: "Sync main with master"
212-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
213-
runs-on: ubuntu-latest
214-
steps:
215-
- name: "Install Git and clone project"
216-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
217-
with:
218-
token: ${{ secrets.MIGRATION_PAT }}
219-
fetch-depth: 0
220-
221-
- name: "Verify that main is the default branch"
222-
shell: bash
223-
run: |
224-
head_branch=$(git remote show origin | grep "HEAD branch:")
225-
main_branch=${head_branch#*: }
226-
227-
if [[ $main_branch != "main" ]]; then
228-
echo "The default branch is not 'main'. It is set to '$main_branch'."
229-
echo "Please set 'main' as the default branch in the repository settings."
230-
exit 1
231-
fi
232-
233-
- name: "Configure git username and email"
234-
shell: bash
235-
run: |
236-
git config --global user.name "${{ secrets.PYANSYS_CI_BOT_USERNAME }}"
237-
git config --global user.email "${{ secrets.PYANSYS_CI_BOT_EMAIL }}"
238-
239-
- name: "Sync main to master"
240-
shell: bash
241-
run: |
242-
git checkout master
243-
git reset --hard main
244-
git push

src/ansys/dpf/core/server_context.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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__(
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
424 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)