-
Notifications
You must be signed in to change notification settings - Fork 826
Closed
Description
Is your feature request related to a problem?
Currently, converters are called with the convert_to method, e.g. u.atoms.convert_to('PARMED'). This requires users to:
- Check the docstring for which converters are available
- Use all caps for the converter name
Describe the solution you'd like
Add to_lib methods for all converters, e.g. u.atoms.to_parmed(). This allows users to use auto-completion to quickly check for which converters are available after typing to_.
Optionally, allowing u.atoms.convert_to('parmed') would be great as it feels more natural
Describe alternatives you've considered
u.atoms.parmed(), i.e. pytorch style, but it's less useful for auto-completion
Additional context
Discussed in PR #2775 (more technically here)
Currently concerns the ParmEd converter, and will also concern the RDKit converter in 2.0.0
Tagging @lilyminium @RMeli @richardjgowers @IAlibay
Reactions are currently unavailable