Skip to content

Commit

Permalink
Merge pull request #3788 from jburel/cdm
Browse files Browse the repository at this point in the history
bump version
  • Loading branch information
dgault authored Mar 9, 2022
2 parents 801b6c2 + a63ef29 commit ef26436
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions components/formats-gpl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
</dependency>
<dependency>
<groupId>edu.ucar</groupId>
<artifactId>cdm</artifactId>
<version>4.6.13</version>
<artifactId>cdm-core</artifactId>
<version>5.3.3</version>
<exclusions>
<exclusion>
<groupId>com.amazonaws</groupId>
Expand Down Expand Up @@ -275,7 +275,7 @@
<additionalClasspathElement>${basedir}/../../ant/</additionalClasspathElement>
</additionalClasspathElements>
<classpathDependencyExcludes>
<classpathDependencyExclude>edu.ucar:cdm</classpathDependencyExclude>
<classpathDependencyExclude>edu.ucar:cdm-core</classpathDependencyExclude>
</classpathDependencyExcludes>
<systemPropertyVariables>
<bioformats_can_do_upgrade_check>false</bioformats_can_do_upgrade_check>
Expand Down
8 changes: 5 additions & 3 deletions components/formats-gpl/src/loci/formats/in/MINCReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,11 @@ protected void initFile(String id) throws FormatException, IOException {
boolean signed = false;
if (isMINC2) {
Hashtable<String, Object> attrs = netcdf.getVariableAttributes("/minc-2.0/image/0/image");
String unsigned = attrs.get("_Unsigned").toString();
if (!unsigned.startsWith("true")) {
signed = true;
if (attrs.get("_Unsigned") != null) {
String unsigned = attrs.get("_Unsigned").toString();
if (!unsigned.startsWith("true")) {
signed = true;
}
}
}
else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public class NetCDFServiceTest {
{"PAL_COLORMODEL", "RGB"},
{"PAL_TYPE", "STANDARD8"},
{"PAL_VERSION", "1.2"},
{"_Unsigned", "true"},
},
{
{"CLASS", "IMAGE"},
Expand All @@ -136,7 +135,6 @@ public class NetCDFServiceTest {
{"IMAGE_SUBCLASS", "IMAGE_INDEXED"},
{"IMAGE_VERSION", "1.2"},
{"PALETTE", "1680"},
{"_Unsigned", "true"},
}
};

Expand Down

0 comments on commit ef26436

Please sign in to comment.