Skip to content
Permalink
Browse files

removed previous addition of region_reference field in HDF5_Reader_Vi…

…bez.java.

JHDF5 does not support region references so will have to use a work around.
  • Loading branch information...
GFleishman committed Apr 14, 2018
1 parent bc2ae2f commit fe1d6b5d5333df1db5b66caae381fcdd05d47c77
Showing with 2 additions and 14 deletions.
  1. +2 −14 src/main/java/sc/fiji/hdf5/HDF5_Reader_Vibez.java
@@ -87,15 +87,13 @@
public String dimText;
public String typeText;
public String element_size_um_text;
public String region_reference;
final int numPaddingSize = 10;

public DataSetInfo( String p, String d, String t, String e, String r) {
public DataSetInfo( String p, String d, String t, String e) {
setPath(p);
dimText = d;
typeText = t;
element_size_um_text = e;
region_reference = r;
}

public void setPath( String p) {
@@ -470,22 +468,12 @@ private void recursiveGetInfo(IHDF5Reader reader, HDF5LinkInformation link)
catch (HDF5Exception err) {
IJ.log("Warning: Can't read attribute 'element_size_um' from dataset '" + info.getPath() + "':\n"
+ err );
}

String region_reference = "unset";
try {
String regref_name = (info.getPath() + "_CONTAINER_SLICE_REGION").substring(1);
region_reference = reader.reference().getAttr("/", regref_name, false);
}
catch (HDF5Exception err) {
IJ.log("Warning: No Region Reference for:\n" + err);
}

IJ.log(info.getPath() + ":" + dsInfo);

dataSets_.add( new DataSetInfo( info.getPath(), dimText, typeText,
element_size_um_text,
region_reference));
element_size_um_text));

break;
case SOFT_LINK:

0 comments on commit fe1d6b5

Please sign in to comment.
You can’t perform that action at this time.