Skip to content
Snippets Groups Projects
Commit 4069feda authored by tpylak's avatar tpylak
Browse files

LMS-2562 bugfix: storing images in hdf5 containers

SVN: 23604
parent b979b1e7
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,7 @@ import ch.systemsx.cisd.openbis.dss.etl.jython.JythonPlateDataSetHandler;
import ch.systemsx.cisd.openbis.dss.generic.shared.ServiceProvider;
import ch.systemsx.cisd.openbis.dss.generic.shared.dto.DataSetInformation;
import ch.systemsx.cisd.openbis.plugin.screening.shared.basic.dto.ChannelDescription;
import ch.systemsx.cisd.openbis.plugin.screening.shared.basic.dto.ScreeningConstants;
import ch.systemsx.cisd.openbis.plugin.screening.shared.imaging.dataaccess.ColorComponent;
/**
......@@ -360,7 +361,7 @@ abstract class AbstractImageStorageProcessor extends AbstractStorageProcessor im
{
assert storedDataDirectory != null : "Unspecified stored data directory. Please call storeData(...)";
File originalFolder = storedDataDirectory;
File originalFolder = getOriginalFolder(storedDataDirectory);
File[] content = originalFolder.listFiles();
if (content == null || content.length == 0)
{
......@@ -720,7 +721,7 @@ abstract class AbstractImageStorageProcessor extends AbstractStorageProcessor im
private static void commitHdf5StorageFormatChanges(File storedDataDirectory)
{
File originalFolder = storedDataDirectory;
File originalFolder = getOriginalFolder(storedDataDirectory);
File hdf5OriginalContainer = getHdf5OriginalContainer(storedDataDirectory);
if (hdf5OriginalContainer.exists()) // this should be always true
{
......@@ -740,6 +741,11 @@ abstract class AbstractImageStorageProcessor extends AbstractStorageProcessor im
}
}
private static File getOriginalFolder(File storedDataDirectory)
{
return new File(storedDataDirectory, ScreeningConstants.ORIGINAL_DATA_DIR);
}
/**
* Moves source file/folder to the destination directory. If the source is a symbolic links to
* the original data then we do not move any data. Instead we create symbolic link to original
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment