Conversation
Previously, img.set_active_channels(reactivatechannels) was turning OFF the channels that were active and edited in the previous set_active_channels() call
|
Also note the now merged update to the readme: https://github.com/ome/omero-cli-render/pull/41/files#diff-7c3731557868b1b97ef87421dd10cf92R119
|
|
Tested using a fake image with four channels ---
channels:
1:
active: true
color: FF0000
end: 255.0
label: '0'
max: 255.0
min: 0.0
start: 0.0
2:
active: true
color: 00FF00
end: 255.0
label: '1'
max: 255.0
min: 0.0
start: 0.0
3:
active: true
color: 0000FF
end: 255.0
label: '2'
max: 255.0
min: 0.0
start: 0.0
4:
active: false
color: FF0000
end: 255.0
label: '3'
max: 255.0
min: 0.0
start: 0.0
greyscale: false
t: 1
version: 2
z: 1and ---
channels:
1:
active: true
start: 0
end: 100
greyscale: false
version: 2Running Running However, trying to restore the original YAML file with Passing So it looks like there is still an issue when switching the channel state from disactive to active and |
|
@sbesson Thanks for catching that. Should be fixed now |
|
Thanks @will-moore. Quickly looking at the code, the latest logic makes sense to me i.e. activate a channel:
Note this particular functionality has already been the object of previous work in #15. In addition to manual testing, could we look into adding an integration test covering the expected channel activation behavior with/without |
|
I think the whole issue is actually one level higher, that one has to call |
|
I guess that |
|
Looks good to me 👍 |
|
"Good to merge" |
|
Released as https://pypi.org/project/omero-cli-render/0.5.1/ |
Previously,
img.set_active_channels(reactivatechannels)was turning OFF the channelsthat were active and edited in the previous set_active_channels() call.
To test, find an Image with 3 Channels, all Active.
Run:
with less than 3 Channels specified, e.g.
settings.yml
This should only edit the first Channel. All 3 channels should stay Active.