Skip to content

Instantly share code, notes, and snippets.

@sbesson
Created March 24, 2015 13:48
Show Gist options
  • Select an option

  • Save sbesson/8a45c7a08b6072929239 to your computer and use it in GitHub Desktop.

Select an option

Save sbesson/8a45c7a08b6072929239 to your computer and use it in GitHub Desktop.
OMERO parallelized session
c=loadOmero(hostname);
s=c.createSession(user, pass);
uuid = s.getAdminService().getEventContext().sessionUuid;
parfor i=1:2
c2 = loadOmero(hostname);
s2= c2.joinSession(uuid);
s2.getAdminService().getEventContext().userName
end
c.closeSession()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment