Skip to content

Commit

Permalink
Fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucio Anderlini committed Jan 16, 2023
1 parent fe4b9a2 commit bda4c51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scikinC/validation/MLFunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __call__(self, data_in):
if not isinstance(data_in, (np.ndarray, list)):
raise TypeError

data_in_f = np.a0sarray(data_in).astype(self.float_type)
data_in_f = np.asarray(data_in).astype(self.float_type)

if len(data_in_f.shape) == 1:
data_in_f = np.array([data_in_f])
Expand All @@ -67,7 +67,7 @@ def __call__(self, data_in):
self._f(obuf, data_row)
output_rows.append(obuf.copy())

if len(data_in.shape) == 1:
if isinstance(data_in, np.ndarray) and len(data_in.shape) == 1:
return output_rows[0]

return np.stack(output_rows)
Expand Down

0 comments on commit bda4c51

Please sign in to comment.