diff --git a/codecov.yml b/codecov.yml index 72687f0e0..2be9e4adf 100644 --- a/codecov.yml +++ b/codecov.yml @@ -8,7 +8,7 @@ coverage: patch: default: # basic - target: 80% + target: 90% if_not_found: success - if_ci_failed: error + if_ci_failed: success if_no_uploads: error diff --git a/doc/changelog.d/707.added.md b/doc/changelog.d/707.added.md new file mode 100644 index 000000000..869ee81f7 --- /dev/null +++ b/doc/changelog.d/707.added.md @@ -0,0 +1 @@ +Feat: Update `get_mechanical_path` \ No newline at end of file diff --git a/src/ansys/mechanical/core/run.py b/src/ansys/mechanical/core/run.py index 9ee5ec443..1ab27152d 100644 --- a/src/ansys/mechanical/core/run.py +++ b/src/ansys/mechanical/core/run.py @@ -179,16 +179,8 @@ def cli( if input_script: raise Exception("Cannot open in server mode with an input script.") - if not revision: - exe = atp.get_mechanical_path() # check for saved mechanical path - if exe: - version = atp.version_from_path("mechanical", exe) # version is already int here - else: - exe, _version = atp.find_mechanical() - version = int(_version * 10) - else: - exe, _version = atp.find_mechanical(version=revision) - version = int(_version * 10) + exe = atp.get_mechanical_path(allow_input=False, version=revision) + version = atp.version_from_path("mechanical", exe) version_name = atp.SUPPORTED_ANSYS_VERSIONS[version]