Skip to content

Commit

Permalink
Remove np array unnecessary assignment on dt col
Browse files Browse the repository at this point in the history
  • Loading branch information
jmao-denver committed Jul 25, 2022
1 parent 928aacc commit 6424ad9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion py/server/deephaven/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def column_to_numpy_array(col_def: Column, j_array: jpy.JType) -> np.ndarray:
longs = _JPrimitiveArrayConversionUtility.translateArrayDateTimeToLong(j_array)
np_long_array = np.frombuffer(longs, np.int64)
np_array = np_long_array.view(col_def.data_type.np_type)
np_array[:] = np_long_array
elif col_def.data_type == dtypes.bool_:
bytes_ = _JPrimitiveArrayConversionUtility.translateArrayBooleanToByte(j_array)
np_array = np.frombuffer(bytes_, col_def.data_type.np_type)
Expand Down

0 comments on commit 6424ad9

Please sign in to comment.