-
Notifications
You must be signed in to change notification settings - Fork 123
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
refactor: small improvements to test settings #3577
base: main
Are you sure you want to change the base?
Conversation
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3577 +/- ##
==========================================
- Coverage 87.13% 87.11% -0.02%
==========================================
Files 187 187
Lines 14660 14677 +17
==========================================
+ Hits 12774 12786 +12
- Misses 1886 1891 +5 |
…mapdl into ci/add-timeout-to-tests
@pyansys-ci-bot LGTM. |
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.
# If there is no result file, this fails. | ||
try: | ||
nsets = int(self.nsets) | ||
except MapdlRuntimeError: |
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.
@germa89 Don't you want to write something down in the log about it?
info += f"\tNumber of result sets: {nsets}\n" | ||
info += f"\tCurrent load step: {self.load_step}\n" | ||
info += f"\tCurrent sub step: {self.sub_step}\n" |
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, step, sub steps...
Remind me of the good old days with Mechanical. I am becoming rusty with it 😭 .
|
||
clear(mapdl) | ||
|
||
# setup the full file |
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.
# setup the full file | |
# set up the full file |
mapdl.vmesh("all") | ||
|
||
# Define a material (nominal steel in SI) | ||
mapdl.mp("EX", 1, 210e9) # Elastic moduli in Pa (kg/(m*s**2)) |
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.
mapdl.mp("EX", 1, 210e9) # Elastic moduli in Pa (kg/(m*s**2)) | |
mapdl.mp("EX", 1, 210e9) # Elastic modulus in Pa (kg/(m*s**2)) |
Description
As the title. Let's explore why the tests are taking so long since #3268
Issue linked
NA
Checklist
draft
if it is not ready to be reviewed yet.feat: adding new MAPDL command
)