rs-station / reciprocalspaceship

Tools for exploring reciprocal space
https://rs-station.github.io/reciprocalspaceship/
MIT License
28 stars 12 forks source link

[Feature Request] gemmification decorators #92

Closed kmdalton closed 3 years ago

kmdalton commented 3 years ago

Decorators that scan the arguments of a function and automatically convert cell and spacegroup arguments to their proper gemmi types would be useful in writing standalone functions. We have 3 decorators

@spacegroupify("parent_sg", "child_sg")
def a_crazy_efx_function(parent_sg, child_sg, data):
    ....
JBGreisman commented 3 years ago

This decorator can then be added to: