Skip to content

Commit

Permalink
non-group-files will be loaded much faster now
Browse files Browse the repository at this point in the history
since now, e.g. with tiff files, each and every file tried to examine all
files in the same folder to check whether there exists a metadata file
in the same directory. this check was performed on setSource,
even if m_groupfiles was disabled.

Signed-off-by: dietzc <christian.dietz@uni-konstanz.de>
  • Loading branch information
dietzc committed Jul 9, 2014
1 parent a2e746d commit b48f014
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion org.knime.knip.io/src/org/knime/knip/io/ScifioImgSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ private Reader getReader(final String imgRef) throws FormatException,
}

if (!m_checkFileFormat || m_reader.getMetadata() == null) {
m_reader.setSource(imgRef);
m_reader.setSource(imgRef,
new SCIFIOConfig().groupableSetGroupFiles(m_isGroupFiles));

// NOTE: after an image (one series) is read once, the reader is
// closed by the ImgOpener (also setting the metadata to null).
Expand Down

0 comments on commit b48f014

Please sign in to comment.