Commit 2cf565e2 authored by Igor Nehoroshev's avatar Igor Nehoroshev Committed by oroulet

Make read_raw_history recursive by default

parent a50c0ce1
...@@ -514,7 +514,7 @@ class Node: ...@@ -514,7 +514,7 @@ class Node:
rpath.Elements.append(el) rpath.Elements.append(el)
return rpath return rpath
async def read_raw_history(self, starttime=None, endtime=None, numvalues=0, return_bounds=True, recursive=False): async def read_raw_history(self, starttime=None, endtime=None, numvalues=0, return_bounds=True):
""" """
Read raw history of a node Read raw history of a node
result code from server is checked and an exception is raised in case of error result code from server is checked and an exception is raised in case of error
...@@ -533,11 +533,6 @@ class Node: ...@@ -533,11 +533,6 @@ class Node:
details.EndTime = ua.get_win_epoch() details.EndTime = ua.get_win_epoch()
details.NumValuesPerNode = numvalues details.NumValuesPerNode = numvalues
details.ReturnBounds = return_bounds details.ReturnBounds = return_bounds
if not recursive:
result = await self.history_read(details)
result.StatusCode.check()
return result.HistoryData.DataValues
history = [] history = []
continuation_point = None continuation_point = None
while True: while True:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment