diff --git a/src/loci/formats/in/ZarrReader.java b/src/loci/formats/in/ZarrReader.java index 86265db..b4dcb00 100644 --- a/src/loci/formats/in/ZarrReader.java +++ b/src/loci/formats/in/ZarrReader.java @@ -5,7 +5,7 @@ * #%L * Implementation of Bio-Formats readers for the next-generation file formats * %% - * Copyright (C) 2020 - 2022 Open Microscopy Environment + * Copyright (C) 2020 - 2024 Open Microscopy Environment * %% * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -930,7 +930,9 @@ private void parseOmeroMetadata(String root, Map attr) throws IO for (int i = 0; i < channels.size(); i++) { Map channel = (Map) channels.get(i); Boolean channelActive = (Boolean) channel.get("active"); - Double channelCoefficient = (Double) channel.get("coefficient"); + Double channelCoefficient = channel.get("coefficient") instanceof Double ? + ((Double) channel.get("coefficient")) : + ((Integer) channel.get("coefficient")).doubleValue(); String channelColor = (String) channel.get("color"); String channelFamily = (String) channel.get("family"); Boolean channelInverted = (Boolean) channel.get("inverted");