Skip to content

Commit

Permalink
session.his_read_series was giving only one value (the first of the s…
Browse files Browse the repository at this point in the history
…erie)

closes #18

Signed-off-by: Christian Tremblay <christian.tremblay@servisys.com>
  • Loading branch information
ChristianTremblay committed Jun 8, 2016
1 parent 4bcacf4 commit 38581e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyhaystack/client/ops/his.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def _on_read(self, operation, **kwargs):
try:
(index, data) = zip(*data)
if isinstance(data[0], hszinc.Quantity):
values = data[0].value
values = [each.value for each in data]
units = data[0].unit
else:
values = data[0]
values = data
units = ''
except ValueError:
values = []
Expand Down

0 comments on commit 38581e7

Please sign in to comment.