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
Add alias .to_file()
for .to()
method of structures and molecules
#3356
Conversation
You don't actually need to write it this way. All that needs to be done is to add |
I know, that's how I started, but when I tried to call the alias in pycharm, it wouldn't give me the input hints and at least for me they are really important. If you think that's not necessary, then I can change it to the simple alias. Also when I only added |
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.
We definitely need a test for the new alias.
Aye aye! 🫡 |
hi @janosh I hope the tests are ok like that? |
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.
Thanks @QuantumChemist! 👍
.to_file()
for .to()
method of structures and molecules.to_file()
for .to()
method of structures and molecules
Summary
I have noticed that many beginners (including myself a while ago) find it very unintuitive to write e.g. structures to a file by using .to(), especially with the .from_file() method counterpart. That's why I added aliases
to_file
for structures and molecules.PS: This is the second attempt of #3354 as something went wrong there...