Skip to content

Commit

Permalink
Merge pull request #23 from glotzerlab/fix/wraps_docs
Browse files Browse the repository at this point in the history
Fix missing docstrings for functions using decorator
  • Loading branch information
vyasr committed Sep 27, 2019
2 parents 8c42717 + c111b48 commit 1be7b8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rowan/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ def _support_1d(func):
argument.
"""

from functools import wraps

# Wrapper function to ensure that input arrays are at least 2-dimensional.
@wraps(func)
def func_atleast_2d(q, *args, **kwargs):
q = np.asarray(q)
if len(q.shape) == 1:
Expand Down

0 comments on commit 1be7b8d

Please sign in to comment.