Skip to content

Commit

Permalink
Merge pull request #247 from rs-station/decorator_sig
Browse files Browse the repository at this point in the history
support **kwargs in gemmification decoratored fn
  • Loading branch information
JBGreisman authored Mar 17, 2024
2 parents 82c2e04 + 37831b9 commit 8631a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reciprocalspaceship/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def wrapped(*args, **kwargs):
for arg in sg_args:
if arg in bargs.arguments:
bargs.arguments[arg] = _convert_spacegroup(bargs.arguments[arg])
return f(**bargs.arguments)
return f(*bargs.args, **bargs.kwargs)

return wrapped

Expand Down Expand Up @@ -155,7 +155,7 @@ def wrapped(*args, **kwargs):
for arg in cell_args:
if arg in bargs.arguments:
bargs.arguments[arg] = _convert_unitcell(bargs.arguments[arg])
return f(**bargs.arguments)
return f(*bargs.args, **bargs.kwargs)

return wrapped

Expand Down

0 comments on commit 8631a99

Please sign in to comment.