Skip to content

Conversation

@will-moore
Copy link
Member

Fixes a couple of bugs in Figure scripts. To test:

  • Run the 'Split View Figure' from the custom UI in Insight (under 'Publishing Options') using a multi-channel image. Turn off some channels for the right-hand (merged) panel. See that your choice is reflected in the figure (Bug was that all channels were still on)
  • Run Split_View_Figure and ROI_Split_Figure from the Scripts menu (script-generated UI) and for each one, fill in the "Merged Colours" key:value pair of fields with 0 and 255. The script should complete and you'll have a single blue channel in the merged Image of the figure.
  • Repeat this, entering non-number strings into the Merged Colours fields. The scripts should still generate a figure, with warnings appearing in the 'Info' output.

@joshmoore
Copy link
Member

@will-moore, @jburel -- Is this a case where it would be worth trying to fix the underlying problem first, i.e. being able to specify Map<Integer, Integer>? We may need to keep the explicit casts regardless for backwards compatibility.

@will-moore
Copy link
Member Author

@joshmoore @jburel It certainly would be nice to specify Map<Integer, Integer> in the same way as we currently allow for lists etc. We'd also need to update the clients to query the data type of a Map and create the appropriate UIs etc. Right now it's quicker to make the change in the script itself (which will be backwards compatible as you say).

@joshmoore
Copy link
Member

Did this get tested?

@will-moore
Copy link
Member Author

@joshmoore No - I just noticed that it got missed.

@jburel
Copy link
Member

jburel commented Jan 14, 2013

@joshmoore: I forgot to add it to the list.

@scottlittlewood
Copy link

@will-moore @jburel

Split View Figure - Publishing Options

Original image with 2 channels:
2 chanel z 3x2 GRID 1 xys Position 3 _c00_z06_t01
2 chanel z 3x2 GRID 1 xys Position 3 _c01_z06_t01
2 chanel z 3x2 GRID 1 xys Position 3 _merged_z06_t01

Result: Passed - Figure Created with channels as grey and only select the first channel to be merged (using channel names).

2 chanel z 3x2 GRID 1

Result: Passed - Figure Created with channels as colour and only select the second channel to be merged.

2 chanel z 3x2 GRID 1_colour

@scottlittlewood
Copy link

@will-moore @jburel

ROI Export - Scrips (0:255 - Blue Channel)

Original image with 2 channels:
raw czi raw czi 26 _c01_z01_t01
raw czi raw czi 26 _merged_z01_t01
raw czi raw czi 26 _c00_z01_t01

Result - Passed

roiFigure

@scottlittlewood
Copy link

@will-moore @jburel

Split View Figure - Scripts (0:255 - Blue Channel)

Original image with 4 channels
090515 MOD mdb keratinocytes2D _c00_z01_t01
090515 MOD mdb keratinocytes2D _c01_z01_t01
090515 MOD mdb keratinocytes2D _c02_z01_t01
090515 MOD mdb keratinocytes2D _c03_z01_t01
090515 MOD mdb keratinocytes2D _merged_z01_t01

Result: Passed

Split_View_Figure

@scottlittlewood
Copy link

@will-moore @jburel

Split View Figure & ROI Figure - Scripts (Text in channel range)

Result: Passed

Info Output

text_as_channel

Split View Figure

Split_View_Figure

ROI Figure

roiFigure

@scottlittlewood
Copy link

@will-moore @jburel All test pass as described, ready for merge.

@jburel
Copy link
Member

jburel commented Jan 15, 2013

@will-moore, @joshmoore: Do we have a ticket to add support for Map<Integer, Integer>?

@joshmoore
Copy link
Member

@jburel: I didn't add a ticket.

@joshmoore
Copy link
Member

@scottlittlewood
Copy link

@will-moore @joshmoore Tested on develop. All features passed the same as before.

joshmoore added a commit that referenced this pull request Feb 15, 2013
@joshmoore joshmoore merged commit 65f3687 into ome:dev_4_4 Feb 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants