Skip to content

Commit

Permalink
fix update viewer options
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzocerrone committed Nov 8, 2024
1 parent dbd6efe commit 55eb5eb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ngio/core/ngff_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,12 @@ def update_omero_window(
_end_percentile = da.percentile(
data, end_percentile, method="nearest"
).compute()
channel.extra_fields["window"] = {
"start": _start_percentile,
"end": _end_percentile,
"min": 0,
"max": max_dtype,
}

channel.channel_visualisation.start = _start_percentile
channel.channel_visualisation.end = _end_percentile
channel.channel_visualisation.min = 0
channel.channel_visualisation.max = max_dtype

ngio_logger.info(
f"Updated window for channel {channel.label}. "
f"Start: {start_percentile}, End: {end_percentile}"
Expand Down

0 comments on commit 55eb5eb

Please sign in to comment.