Skip to content
Snippets Groups Projects
Commit 9c94be6c authored by Alán Muñoz's avatar Alán Muñoz
Browse files

keep blitz connection alive

parent bc098e12
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,8 @@ class Argo: ...@@ -50,6 +50,8 @@ class Argo:
host=self.host, username=self.username, passwd=self.password host=self.host, username=self.username, passwd=self.password
) )
self.conn.connect() self.conn.connect()
self.conn.c.enableKeepAlive(60)
return self return self
# standard method required for Python's with statement # standard method required for Python's with statement
...@@ -83,4 +85,5 @@ def get_data_lazy(image) -> da.Array: ...@@ -83,4 +85,5 @@ def get_data_lazy(image) -> da.Array:
z_stack.append(get_lazy_plane((z, c, t))) z_stack.append(get_lazy_plane((z, c, t)))
c_stacks.append(da.stack(z_stack)) c_stacks.append(da.stack(z_stack))
t_stacks.append(da.stack(c_stacks)) t_stacks.append(da.stack(c_stacks))
return da.stack(t_stacks) return da.stack(t_stacks)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment