Skip to content

Commit

Permalink
Merge pull request #5 from kkoz/bulk-annotations-and-streaming
Browse files Browse the repository at this point in the history
Bulk annotations and streaming
  • Loading branch information
sbesson authored Sep 3, 2018
2 parents 3fca517 + ef91b15 commit 782d9ed
Show file tree
Hide file tree
Showing 5 changed files with 406 additions and 187 deletions.
7 changes: 7 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
CHANGES
=======

0.3.0
-----

* Added bulk annotations for Projects and Datasets
* Changed csv parsing to proceed line-by-line (streaming)


0.2.2
-----

Expand Down
20 changes: 10 additions & 10 deletions src/omero_cli_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,20 +476,20 @@ def populate(self, args):
cfgid = cfgann.getFile().getId()
md.linkAnnotation(cfgann)

# Note some contexts only support a subset of these args
ctx = context_class(client, args.obj, file=args.file, fileid=fileid,
cfg=args.cfg, cfgid=cfgid, attach=args.attach,
options=localcfg)
ctx.parse()
loops = 0
ms = 0
if not args.dry_run:
wait = args.wait
if not wait:
loops = 0
ms = 0
else:
if wait:
ms = 5000
loops = int((wait * 1000) / ms) + 1
ctx.write_to_omero(batch_size=args.batch, loops=loops, ms=ms)

# Note some contexts only support a subset of these args
ctx = context_class(client, args.obj, file=args.file, fileid=fileid,
cfg=args.cfg, cfgid=cfgid, attach=args.attach,
options=localcfg, batch_size=args.batch,
loops=loops, ms=ms)
ctx.parse()

def rois(self, args):
"Manage ROIs"
Expand Down
Loading

0 comments on commit 782d9ed

Please sign in to comment.