Skip to content

Commit 770495c

Browse files
committed
Few bugs fixed in numpy utils
1 parent 7081000 commit 770495c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pyunitwizard/utils/numpy/hstack.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
def hstack(sequence, to_unit=None, to_form=None, value_type='tuple', standardized=False):
1+
import numpy as np
2+
from pyunitwizard import quantity, get_unit, get_value
23

4+
def hstack(sequence, to_unit=None, to_form=None, value_type='tuple', standardized=False):
5+
36
if to_unit is None:
47
output_unit = get_unit(sequence[0][0])
58
else:

pyunitwizard/utils/numpy/vstack.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import numpy as np
2+
from pyunitwizard import quantity, get_unit, get_value
13

24
def vstack(sequence, to_unit=None, to_form=None, value_type='tuple', standardized=False):
35

0 commit comments

Comments
 (0)