diff --git a/screening/sourceTest/core-plugins/FeatureVectorsDropboxTest/1/dss/drop-boxes/FeatureVectorsDropboxTest-drop-box/feature-vector-data-set-handler.py b/screening/sourceTest/core-plugins/FeatureVectorsDropboxTest/1/dss/drop-boxes/FeatureVectorsDropboxTest-drop-box/feature-vector-data-set-handler.py index d6059bd49ad1b02501abbce75a93f6dbbb6883d1..f5e396a0e33b057c54c5d1dea1f7195adc27fac4 100644 --- a/screening/sourceTest/core-plugins/FeatureVectorsDropboxTest/1/dss/drop-boxes/FeatureVectorsDropboxTest-drop-box/feature-vector-data-set-handler.py +++ b/screening/sourceTest/core-plugins/FeatureVectorsDropboxTest/1/dss/drop-boxes/FeatureVectorsDropboxTest-drop-box/feature-vector-data-set-handler.py @@ -8,10 +8,11 @@ An Jython dropbox for importing HCS image datasets for use by the FeatureVectors """ import os +from java.io import File from java.util import Properties from ch.systemsx.cisd.openbis.dss.etl.dto.api.v2 import SimpleFeatureVectorDataConfig -from java.io import File - +from ch.systemsx.cisd.openbis.dss.etl.dto.api.v2 import FeatureListDataConfig + def create_experiment(tr): space = tr.getSpace("TEST") if space == None: @@ -62,4 +63,10 @@ def process(transaction): featureDataSet.setSample(plate) transaction.moveFile(featuresPath, featureDataSet) - print featureDataSet \ No newline at end of file + config = FeatureListDataConfig() + config.setName("shortListOfFeatures"); + config.setFeatureList(["feature1", "feature2"]) + config.setContainerDataSet(featureDataSet) + + transaction.createNewFeatureListDataSet(config) + \ No newline at end of file