-
Notifications
You must be signed in to change notification settings - Fork 23
added pythonnet check with warning output #235
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
b9caa98
added pythonnet check with warning output
33849b4
try except for cases of older versions of pip - src/ansys/mechanical/…
klmcadams 8b3880e
added comment describing code block - src/ansys/mechanical/core/embed…
klmcadams 1c58a27
adjusted warning output & pip comment spacing
klmcadams 9ffcca4
moved pythonnet check to initializer.py
klmcadams bf63fbe
created unit test for pythonnet embedded instance
klmcadams c07c28b
updated changelog
klmcadams 01ad078
Merge branch 'main' into fix/pythonnetconflict
klmcadams 75c5860
adjusted syntax & added print lines
klmcadams 8886aad
added remote session unit tests
klmcadams 86a32a2
fixed style issues
klmcadams c32cee4
dynamic python path & used importlib.metadata to detect pythonnet
klmcadams 80d957a
added apt install python venv to ci_cd yml file
klmcadams 3b72fc7
added -y flag to apt install python venv
klmcadams c6da2f4
remove whitespace - src/ansys/mechanical/core/embedding/app.py
klmcadams cf4be53
pass instead of print in try/except - src/ansys/mechanical/core/embed…
klmcadams 547c818
condensing stderr_output if statement - tests/embedding/test_app.py
klmcadams 54ea106
assert not warning statement - tests/test_mechanical.py
klmcadams 17a8976
assert not warning - tests/test_mechanical.py
klmcadams 35fdee4
Updated comments for warning checking - tests/test_mechanical.py
klmcadams b9abfaf
Updated comment for warning check - tests/test_mechanical.py
klmcadams e7d2d9b
Updated comment for warning check - tests/embedding/test_app.py
klmcadams cd79873
changed assert warning statement - tests/embedding/test_app.py
klmcadams b129cd8
removed print statements
klmcadams File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""Launch embedded instance.""" | ||
import ansys.mechanical.core as pymechanical | ||
|
||
# Launch embedded instance of app | ||
app = pymechanical.App() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"""Launch remote session.""" | ||
import ansys.mechanical.core as pymechanical | ||
|
||
# Launch remote session | ||
pymechanical.launch_mechanical() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.