Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk annotations and streaming #5

Merged
merged 8 commits into from
Sep 3, 2018
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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly the --dry-run argument is now largely a no-op, similarly to the -info command. Primary question is whether we might want to resurrect it at some point via some constructor option of equivalent.

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