-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Ufuncs could support external classes #747
Comments
This could be cool, but I think it has very low priority. There are soo many issues open that I think we should try to finish some of them ;) I also can't really see who will use it? Much of the functional methods are also done in other codes, with slightly different API's, so my bet is that if somebody is using |
I would see this being useful if some function is not implemented in ASE, or it has an API that is more complicated to acheive a certain goal. If someone asks how to acheive that thing in Matter Modelling, then you can answer: "use this function in sisl". And you will have introduced sisl to them with minimal friction :) |
I don't really mind if it is a small pr, but I don't think you should spend tons of time on this, I would still prefer some help on thinking about the categories, and how we can solve that issue ;) |
I will leave the issue here, I don't want to work on it for now, it was just an idea. |
I have been thinking about this, and it seems one could do this quite easily with a default method that loops through the object registry, and tries So I think this could be done with minimal effort! |
E.g. in the case of
Geometry
there are implementations to convert from/to ASE atoms. So with a simple wrapper it should be easy to support:I think it would be quite cool. It would be similar to how
numpy
can apply operations on many objects, although the implementation would be different in the sense that is based onsisl
implementing the converters.The text was updated successfully, but these errors were encountered: