Skip to content
Snippets Groups Projects
Commit bff7c4ee authored by brinn's avatar brinn
Browse files

Add debug log message.

SVN: 24311
parent 8253f99f
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,11 @@ import java.util.Collections;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import ch.systemsx.cisd.common.exceptions.UserFailureException;
import ch.systemsx.cisd.common.logging.LogCategory;
import ch.systemsx.cisd.common.logging.LogFactory;
import ch.systemsx.cisd.openbis.generic.server.business.bo.IDataBO;
import ch.systemsx.cisd.openbis.generic.server.business.bo.IDataSetTable;
import ch.systemsx.cisd.openbis.generic.server.business.bo.ISampleBO;
......@@ -68,6 +72,9 @@ import ch.systemsx.cisd.openbis.plugin.screening.shared.imaging.IHCSFeatureVecto
*/
public class PlateContentLoader
{
private final static Logger operationLog = LogFactory.getLogger(LogCategory.OPERATION,
PlateContentLoader.class);
/**
* Loads data about the plate for a specified sample id. Attaches information about images and
* image analysis datasets.
......@@ -296,6 +303,17 @@ public class PlateContentLoader
FeatureVectorDataset featureVectorDataset =
new FeatureVectorDataset(datasetReference, featureVectors, allFeatureNames,
property == null ? null : property.value);
if (operationLog.isDebugEnabled())
{
operationLog.debug(String.format("loadFeatureVector(%s,%s):",
datasetReference.getPermId(), featureName.toString()));
for (int i = 0; i < featureVectorDataset.getDatasetFeatures().size(); ++i)
{
operationLog.debug(String.format("%d: %s -> %s", i, featureVectorDataset
.getDatasetFeatures().get(i).getWellLocation(), featureVectorDataset
.getDatasetFeatures().get(i).getFeatureMap()));
}
}
return featureVectorDataset;
}
......
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