Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
70e56f32
Commit
70e56f32
authored
13 years ago
by
tpylak
Browse files
Options
Downloads
Patches
Plain Diff
SE-352 add comments how to switch off using 'convert'
SVN: 22107
parent
2536303f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sanofi/dist/etc/sanofi-dropbox/dropbox-all-in-one-with-library.py
+8
-8
8 additions, 8 deletions
...ist/etc/sanofi-dropbox/dropbox-all-in-one-with-library.py
with
8 additions
and
8 deletions
sanofi/dist/etc/sanofi-dropbox/dropbox-all-in-one-with-library.py
+
8
−
8
View file @
70e56f32
...
@@ -69,6 +69,8 @@ STORE_CHANNELS_ON_EXPERIMENT_LEVEL = False
...
@@ -69,6 +69,8 @@ STORE_CHANNELS_ON_EXPERIMENT_LEVEL = False
"""
should the original data be stored in the original form or should we pack them into one container?
"""
"""
should the original data be stored in the original form or should we pack them into one container?
"""
ORIGINAL_DATA_STORAGE_FORMAT
=
OriginalDataStorageFormat
.
UNCHANGED
ORIGINAL_DATA_STORAGE_FORMAT
=
OriginalDataStorageFormat
.
UNCHANGED
"""
Change to
'
False
'
if
'
convert
'
tool is not installed
"""
USE_IMAGE_MAGIC_CONVERT_TOOL
=
True
def
rollback_service
(
service
,
ex
):
def
rollback_service
(
service
,
ex
):
global
plateCode
global
plateCode
...
@@ -286,10 +288,9 @@ if incoming.isDirectory():
...
@@ -286,10 +288,9 @@ if incoming.isDirectory():
imageDatasetConfig
=
MyImageDataSetConfig
(
incoming
,
incoming
)
imageDatasetConfig
=
MyImageDataSetConfig
(
incoming
,
incoming
)
imageDatasetConfig
.
setRawImageDatasetType
()
imageDatasetConfig
.
setRawImageDatasetType
()
imageDatasetConfig
.
setFileFormatType
(
IMAGE_DATASET_FILE_FORMAT
)
imageDatasetConfig
.
setFileFormatType
(
IMAGE_DATASET_FILE_FORMAT
)
# Change to 'False' if 'convert' tool is not installed
imageDatasetConfig
.
setUseImageMagicToGenerateThumbnails
(
USE_IMAGE_MAGIC_CONVERT_TOOL
)
imageDatasetConfig
.
setUseImageMagicToGenerateThumbnails
(
True
)
# Available in the next release:
# used only if Image Magic is used to generate thumbnails
#imageDatasetConfig.setThumbnailsGenerationImageMagicParams(["-contrast-stretch", "0"])
imageDatasetConfig
.
setThumbnailsGenerationImageMagicParams
([
"
-contrast-stretch
"
,
"
0
"
])
imageDatasetDetails
=
factory
.
createImageRegistrationDetails
(
imageDatasetConfig
,
incoming
)
imageDatasetDetails
=
factory
.
createImageRegistrationDetails
(
imageDatasetConfig
,
incoming
)
imageDataSet
=
transaction
.
createNewDataSet
(
imageDatasetDetails
)
imageDataSet
=
transaction
.
createNewDataSet
(
imageDatasetDetails
)
imageDataSet
.
setPropertyValue
(
IMAGE_DATASET_BATCH_PROPCODE
,
batchName
)
imageDataSet
.
setPropertyValue
(
IMAGE_DATASET_BATCH_PROPCODE
,
batchName
)
...
@@ -302,10 +303,9 @@ if incoming.isDirectory():
...
@@ -302,10 +303,9 @@ if incoming.isDirectory():
overlayDatasetConfig
=
MyImageDataSetConfig
(
overlaysDir
,
overlaysDir
)
overlayDatasetConfig
=
MyImageDataSetConfig
(
overlaysDir
,
overlaysDir
)
overlayDatasetConfig
.
setSegmentationImageDatasetType
()
overlayDatasetConfig
.
setSegmentationImageDatasetType
()
overlayDatasetConfig
.
setFileFormatType
(
OVERLAY_IMAGE_FILE_FORMAT
)
overlayDatasetConfig
.
setFileFormatType
(
OVERLAY_IMAGE_FILE_FORMAT
)
# Change to 'False' if 'convert' tool is not installed
overlayDatasetConfig
.
setUseImageMagicToGenerateThumbnails
(
USE_IMAGE_MAGIC_CONVERT_TOOL
)
overlayDatasetConfig
.
setUseImageMagicToGenerateThumbnails
(
True
)
# Available in the next release:
# used only if Image Magic is used to generate thumbnails
#overlayDatasetConfig.setThumbnailsGenerationImageMagicParams(["-contrast-stretch", "0"])
overlayDatasetConfig
.
setThumbnailsGenerationImageMagicParams
([
"
-contrast-stretch
"
,
"
0
"
])
overlayDatasetDetails
=
factory
.
createImageRegistrationDetails
(
overlayDatasetConfig
,
overlaysDir
)
overlayDatasetDetails
=
factory
.
createImageRegistrationDetails
(
overlayDatasetConfig
,
overlaysDir
)
overlayDataset
=
transaction
.
createNewDataSet
(
overlayDatasetDetails
)
overlayDataset
=
transaction
.
createNewDataSet
(
overlayDatasetDetails
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment