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
9a7fc597
Commit
9a7fc597
authored
10 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-946: Set meaningful colors for the channels in the installer example HCS dorp box script.
SVN: 32546
parent
b0fc6115
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
screening/source/core-plugins/screening/4/dss/drop-boxes/hcs-dropbox/hcs-dropbox.py
+10
-2
10 additions, 2 deletions
...ins/screening/4/dss/drop-boxes/hcs-dropbox/hcs-dropbox.py
with
10 additions
and
2 deletions
screening/source/core-plugins/screening/4/dss/drop-boxes/hcs-dropbox/hcs-dropbox.py
+
10
−
2
View file @
9a7fc597
import
os
from
ch.systemsx.cisd.openbis.dss.etl.dto.api.v1
import
SimpleImageDataConfig
from
ch.systemsx.cisd.openbis.dss.etl.dto.api.v1
import
ImageMetadata
from
ch.systemsx.cisd.openbis.dss.etl.dto.api
import
ChannelColor
from
ch.systemsx.cisd.openbis.dss.etl.dto.api
import
SimpleImageDataConfig
from
ch.systemsx.cisd.openbis.dss.etl.dto.api
import
ImageMetadata
from
ch.systemsx.cisd.openbis.plugin.screening.shared.api.v1.dto
import
Geometry
SPACE_CODE
=
"
TEST
"
...
...
@@ -68,6 +69,13 @@ class MyImageDataSetConfig(SimpleImageDataConfig):
image_tokens
.
channelCode
=
channelCode
return
image_tokens
def
getChannelColor
(
self
,
channelCode
):
dict
=
{
"
GFP
"
:
ChannelColor
.
GREEN
,
"
DAPI
"
:
ChannelColor
.
BLUE
,
"
CY3
"
:
ChannelColor
.
RED
}
if
channelCode
in
dict
:
return
dict
[
channelCode
]
else
:
return
None
def
getTileGeometry
(
self
,
imageTokens
,
maxTileNumber
):
return
Geometry
.
createFromRowColDimensions
(
maxTileNumber
/
3
,
3
)
...
...
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