Skip to content
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

ParametricStudy.save() has a side effect of silently changing the study file path. #301

Closed
2 tasks done
pkrull-ansys opened this issue Mar 13, 2024 · 1 comment
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@pkrull-ansys
Copy link
Collaborator

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

When ParametricStudy.save() is called and the file_name parameter does not match the current study file name (which is stored in the file_name attribute), the study is saved to file_name and the file_name attribute is set to the new file name. This is an undocumented side effect.

📝 Steps to reproduce

from ansys.additive.core.parametric_study import ParametricStudy

study = ParametricStudy("study-file")
print(study.file_name)
study.save("new-study-file")
print(study.file_name)

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

24.2

🐍 Which Python version are you using?

3.9

📦 Installed packages

n/a
@pkrull-ansys
Copy link
Collaborator Author

Closed by #302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant