You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2022/12/29 02:19:34 UTC

[iotdb] branch fix_python_status_code updated: add more

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch fix_python_status_code
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/fix_python_status_code by this push:
     new 62467a63a7 add more
62467a63a7 is described below

commit 62467a63a77bf8aec45280c52d66b6ca90c0f74b
Author: HTHou <hh...@outlook.com>
AuthorDate: Thu Dec 29 10:18:37 2022 +0800

    add more
---
 client-py/iotdb/utils/IoTDBRpcDataSet.py | 2 +-
 client-py/tests/test_session.py          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/client-py/iotdb/utils/IoTDBRpcDataSet.py b/client-py/iotdb/utils/IoTDBRpcDataSet.py
index e9dfa7bfe6..52511645ec 100644
--- a/client-py/iotdb/utils/IoTDBRpcDataSet.py
+++ b/client-py/iotdb/utils/IoTDBRpcDataSet.py
@@ -252,7 +252,7 @@ class IoTDBRpcDataSet(object):
 
                     bitmap_buffer = self.__query_data_set.bitmapList[location]
                     bitmap_str = self._to_bitstring(bitmap_buffer)
-                    bit_mask = (np.fromstring(bitmap_str, 'u1') - ord('0')).astype(bool)
+                    bit_mask = (np.frombuffer(bitmap_str, 'u1') - ord('0')).astype(bool)
                     if len(bit_mask) != total_length:
                         bit_mask = bit_mask[:total_length]
                     tmp_array[bit_mask] = data_array
diff --git a/client-py/tests/test_session.py b/client-py/tests/test_session.py
index d6e1991bf5..5f35e2a693 100644
--- a/client-py/tests/test_session.py
+++ b/client-py/tests/test_session.py
@@ -266,7 +266,7 @@ def test_session():
             "root.sg_test_01.d_01", measurements_, data_types_, values_, [8, 9, 10, 11]
         )
         tablet_02 = Tablet(
-            "root.sg_test_01.d_01",
+            "root.sg_test_01.d_02",
             measurements_,
             data_types_,
             values_,