-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix unit tests for 2023.2.pre1 server and add License context manager #846
Conversation
Codecov Report
@@ Coverage Diff @@
## master #846 +/- ##
==========================================
- Coverage 88.89% 88.88% -0.02%
==========================================
Files 72 72
Lines 8193 8220 +27
==========================================
+ Hits 7283 7306 +23
- Misses 910 914 +4 |
src/ansys/dpf/core/server_context.py
Outdated
"""Can be optionally used to pre checkout a licence before using licensed DPF Operators. | ||
Improves performances if many Operators requiring licensing are used afterwards. | ||
It can also be used to force checkout before running a script when few | ||
ANSYS license increments are available. | ||
Check in the license when the object is deleted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For line 48, my assumption is that the check in is automatic when the object is deleted. If you have to manually check in the license after deleting the object, keep line 48 as originally written.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's correct @JennaPaikowsky, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few edits here
Co-authored-by: JennaPaikowsky <98607744+JennaPaikowsky@users.noreply.github.com>
…s/DPF-Core into feat/preprate_2023.2.pre1
"""Sets the default number of threads to use for all operators, | ||
default is omp_get_num_threads. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Sets the default number of threads to use for all operators, | |
default is omp_get_num_threads. | |
"""Returns the license timeout in seconds. |
return self._data_tree.get_as("license_timeout_in_seconds", types.double) | ||
|
||
@license_timeout_in_seconds.setter | ||
def license_timeout_in_seconds(self, value): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def license_timeout_in_seconds(self, value): | |
def license_timeout_in_seconds(self, value): | |
"""Sets the license timeout in seconds.""" |
No description provided.