Skip to content

Commit

Permalink
Merge pull request #553 from neutrinoceros/bug/fix_linspace_num
Browse files Browse the repository at this point in the history
BUG: fix a regression where `np.linspace`'s num argument would be ignored for `unyt_array`s
  • Loading branch information
neutrinoceros authored Dec 25, 2024
2 parents d78655f + c25ed28 commit bf8e8ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unyt/_array_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ def linspace(
return _linspace(
start,
stop,
num=50,
num=num,
endpoint=endpoint,
retstep=retstep,
dtype=dtype,
Expand All @@ -681,7 +681,7 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, axis
return _linspace(
start,
stop,
num=50,
num=num,
endpoint=endpoint,
retstep=retstep,
dtype=dtype,
Expand Down

0 comments on commit bf8e8ac

Please sign in to comment.