Skip to content
Snippets Groups Projects
Commit e0955f41 authored by jakubs's avatar jakubs
Browse files

SP-299 BIS-211 add creating of features list to the feature vectors test

SVN: 27069
parent 389d1ddd
No related branches found
No related tags found
No related merge requests found
...@@ -8,10 +8,11 @@ An Jython dropbox for importing HCS image datasets for use by the FeatureVectors ...@@ -8,10 +8,11 @@ An Jython dropbox for importing HCS image datasets for use by the FeatureVectors
""" """
import os import os
from java.io import File
from java.util import Properties from java.util import Properties
from ch.systemsx.cisd.openbis.dss.etl.dto.api.v2 import SimpleFeatureVectorDataConfig 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): def create_experiment(tr):
space = tr.getSpace("TEST") space = tr.getSpace("TEST")
if space == None: if space == None:
...@@ -62,4 +63,10 @@ def process(transaction): ...@@ -62,4 +63,10 @@ def process(transaction):
featureDataSet.setSample(plate) featureDataSet.setSample(plate)
transaction.moveFile(featuresPath, featureDataSet) transaction.moveFile(featuresPath, featureDataSet)
print featureDataSet config = FeatureListDataConfig()
\ No newline at end of file config.setName("shortListOfFeatures");
config.setFeatureList(["feature1", "feature2"])
config.setContainerDataSet(featureDataSet)
transaction.createNewFeatureListDataSet(config)
\ No newline at end of file
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