Skip to content

Commit

Permalink
values are stored as a list
Browse files Browse the repository at this point in the history
  • Loading branch information
fbriol committed Sep 22, 2020
1 parent 07140fd commit b20898b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pyinterp/geohash/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ def get_properties(store) -> Dict[str, Any]:
dict: Index properties (number of character used to encode a
position)
"""
return json.loads(store[b'.properties'])
precision = store[b'.properties']
if isinstance(precision, list):
precision = precision[0]
return json.loads(precision)

def encode(self,
lon: numpy.ndarray,
Expand Down

0 comments on commit b20898b

Please sign in to comment.