Skip to content

Commit 5b6f33d

Browse files
committed
fix len ref in hsds_reader
1 parent e7452ca commit 5b6f33d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/h5json/hsdsstore/hsds_reader.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
# request a copy from help@hdfgroup.org. #
1111
##############################################################################
1212
import logging
13-
import time
14-
import numpy as np
1513

16-
from ..objid import getCollectionForId, getUuidFromId, createObjId
14+
from ..objid import getCollectionForId, getUuidFromId
1715

1816
from ..hdf5dtype import createDataType
1917
from ..array_util import jsonToArray, bytesToArray
@@ -277,7 +275,7 @@ def getDatasetValues(self, dset_id, sel=None, dtype=None):
277275
params["fields"] = ":".join(mtype.names)
278276

279277
MAX_SELECT_QUERY_LEN = 100
280-
if len(query_param) > MAX_SELECT_QUERY_LEN:
278+
if query_param and len(query_param) > MAX_SELECT_QUERY_LEN:
281279
# use a post method to avoid possible long query strings
282280
try:
283281
rsp = self.http_conn.POST(req, body=params, format="binary")

0 commit comments

Comments
 (0)