-
Notifications
You must be signed in to change notification settings - Fork 24
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 dynamic option to append_name #644
Conversation
I am working on materialsproject/atomate2#752. To finish it, this or a similar functionality would be needed. Otherwise, |
Hi @JaGeo I did not test but I think it should work. I guess for your own needs is fine but if I have to say one thing, maybe I would make a new update_name method that has more functionalities:
API of this method could be:
Then the append_name can just be used by this method if prefix and/or suffix is provided. (and the dynamic in append_name is not needed, I guess it would be better/less confusing if it is only in one place) Not sure if it is absolutely essential, but it would make thing consistent with the rest of the update_* methods. (and I guess it would not be a huge work but again, it's all a matter of "is it needed and worth it if there is no use case right now ?") |
I don't really have a use case for the other cases. My use case currently to make sure I can differentiate jobs for moch_vasp. (And, yes, it works. I tested it 😅) |
Thanks, @JaGeo. I'll merge this for now. I put @davidwaroquiers comment into a new issue #648. |
Thanks, @utf . Would a new version be okay? Then, I can finalize the Grüneise workflow in atomate2 as well |
I just pushed a new version (v0.1.18). It should be out soon. |
Thank you @utf ! |
Hi @utf , @davidwaroquiers ,
I have made a draft implementation to address #639 . Let me know what you think. I hope I haven't overlooked anything.