We're Hiring!

Color channel default assignment during import

General user discussion about using the OMERO platform to its fullest. Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

Re: Color channel default assignment during import

Postby dsudar » Sun Mar 23, 2014 9:25 pm

Hi Will,

Thanks again. Seems to work fine on OMERO 5 as well. There's just one small error in the code that causes the user dialog to come up wrong in Insight while it looks fine in OMERO.Web:

Instead of:

scripts.String(PARAM_DATATYPE, optional=False, grouping="1.1",
description="The data you want to work with.", values=dataTypes,
default="Image"),

scripts.List(PARAM_IDS, optional=True, grouping="1.2",
description="List of Dataset IDs or Image IDs").ofType(rlong(0)),

scripts.Bool(PARAM_ALL_IMAGES, grouping="1.3",
description="Process all images (ignore the ID parameters)",
default=False),


It should be:

scripts.String(PARAM_DATATYPE, optional=False, grouping="1",
description="The data you want to work with.", values=dataTypes,
default="Image"),

scripts.List(PARAM_IDS, optional=True, grouping="1.1",
description="List of Dataset IDs or Image IDs").ofType(rlong(0)),

scripts.Bool(PARAM_ALL_IMAGES, grouping="1.2",
description="Process all images (ignore the ID parameters)",
default=False),


I hope others will have use for this script as well. Thanks to Pierre and Will!!
- Damir
dsudar
 
Posts: 235
Joined: Mon May 14, 2012 8:43 pm
Location: Berkeley, CA, USA

Re: Color channel default assignment during import

Postby wmoore » Mon Mar 24, 2014 12:23 pm

Hi,

Thanks for catching that.

I opened a PR with the fix: https://github.com/ppouchin/omero-user-scripts/pull/4

Cheers,

Will.
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Previous

Return to User Discussion

Who is online

Users browsing this forum: No registered users and 1 guest