Skip to content

Set rendering settings for inactive channels#43

Merged
sbesson merged 2 commits intoome:masterfrom
sbesson:set_inactive
Jul 17, 2020
Merged

Set rendering settings for inactive channels#43
sbesson merged 2 commits intoome:masterfrom
sbesson:set_inactive

Conversation

@sbesson
Copy link
Member

@sbesson sbesson commented Jul 13, 2020

This PR attempts to fix the behavior of the current render plugin when a YML/JSON file contains rendering settings (color, start/end window) for both active and inactive channels. In the current scenario, the rendering settings for the inactive channels are silently ignored. fc9cee4 contains a failing test capturing this behavior.

This issue was the primary motivation behind the omero.gateway API introduced in ome/openmicroscopy#5955. With this change, rendering settings should be applied independently of the active state of the channel if specified via the configuration file.

Opening this as a behavior change of the plugin as I consider the current implementation as faulty and inconsistent with the fact channel names are set unconditionally. If backward compatibility and/or support for the previous behavior is valuable, this could be introduced as a --{ignore,set}-inactive option for the set command.

sbesson added 2 commits July 13, 2020 14:56
With the current version of the plugin, rendering settings are lost if channels
are set to inactive
@dominikl
Copy link
Member

Looks good 👍 I think too that the change of behaviour is fine, as the current behaviour is definitely not what one would expect.

@sbesson
Copy link
Member Author

sbesson commented Jul 17, 2020

Merging and tagging as 0.6.0 and I will restore some form of backwards-compatibility if there is a concrete driver for the previous behavior.

@sbesson sbesson merged commit da56676 into ome:master Jul 17, 2020
@sbesson sbesson deleted the set_inactive branch July 17, 2020 13:07
@imagesc-bot
Copy link

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/omero-cli-render-set-cant-adjust-disabled-channels/56273/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants