Skip to content

Commit

Permalink
Use np.bool_ instead of deprecated np.bool8 (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreeve committed Jan 5, 2023
1 parent a4fb9a3 commit f660eab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nptdms/test/scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ def incomplete_last_row_of_interleaved_data():
def bool_data():
""" Test reading a file with boolean valued data
"""
expected_channel_data = np.array([False, True, False, True], dtype=np.dtype('bool8'))
expected_channel_data = np.array([False, True, False, True], dtype=np.dtype(np.bool_))

test_file = GeneratedFile()
test_file.add_segment(
Expand Down
2 changes: 1 addition & 1 deletion nptdms/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def read_values(cls, file, number_values, endianness="<"):
return strings


@tds_data_type(0x21, np.bool8)
@tds_data_type(0x21, np.bool_)
class Boolean(StructType):
size = 1
struct_declaration = "b"
Expand Down

0 comments on commit f660eab

Please sign in to comment.