Skip to content
Snippets Groups Projects
Commit 689f9603 authored by kaloyane's avatar kaloyane
Browse files

[LMS-2350] dropbox fixes

SVN: 22022
parent 5f3bcfe9
No related branches found
No related tags found
No related merge requests found
......@@ -465,6 +465,8 @@ class MyImageDataSetConfig(SimpleImageDataConfig):
self.setStoreChannelsOnExperimentLevel(STORE_CHANNELS_ON_EXPERIMENT_LEVEL)
self.setOriginalDataStorageFormat(ORIGINAL_DATA_STORAGE_FORMAT)
if GENERATE_THUMBNAILS:
self.setGenerateThumbnails(True)
self.setUseImageMagicToGenerateThumbnails(True)
self.setAllowedMachineLoadDuringThumbnailsGeneration(ALLOWED_MACHINE_LOAD_DURING_THUMBNAIL_GENERATION)
self.setMaxThumbnailWidthAndHeight(MAX_THUMNAIL_WIDTH_AND_HEIGHT)
......@@ -548,10 +550,10 @@ if incoming.isDirectory():
overlaysDir = findDir(incoming, OVERLAYS_DIR_PATTERN)
if overlaysDir is not None:
convertToPng(overlaysDir.getPath(), OVERLAYS_TRANSPARENT_COLOR)
overlayDatasetConfig = MyImageDataSetConfig(incoming, overlaysDir)
overlayDatasetConfig = MyImageDataSetConfig(overlaysDir, overlaysDir)
overlayDatasetConfig.setSegmentationImageDatasetType()
overlayDatasetConfig.setFileFormatType(OVERLAY_IMAGE_FILE_FORMAT)
overlayDatasetDetails = factory.createImageRegistrationDetails(overlayDatasetConfig, incoming)
overlayDatasetDetails = factory.createImageRegistrationDetails(overlayDatasetConfig, overlaysDir)
overlayDataset = transaction.createNewDataSet(overlayDatasetDetails)
overlayDataset.setSample(imageDataSet.getSample())
overlayDataset.setParentDatasets([ imageDataSet.getDataSetCode() ])
......
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