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
a general purpose gemmify decorator. @gemmify scans for keyword arguments named sg, spacegroup , space_group, cell, unitcell, unit_cell, and converts them accordingly
a spacegroupify decorator which has *args for each argument name to be converted
Decorators that scan the arguments of a function and automatically convert
cell
andspacegroup
arguments to their propergemmi
types would be useful in writing standalone functions. We have 3 decoratorsgemmify
decorator. @gemmify scans for keyword arguments named sg, spacegroup , space_group, cell, unitcell, unit_cell, and converts them accordinglyspacegroupify
decorator which has*args
for each argument name to be convertedcellify
decoraor (in the same vein ofspacegroupify
)