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
65e57c7b
Commit
65e57c7b
authored
10 years ago
by
juanf
Browse files
Options
Downloads
Patches
Plain Diff
SSDM-1529: PAPER - OPENBIS - Migrate Manage Properties YeastLab Continuation
SVN: 33466
parent
e9ff5440
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
plasmid/source/core-plugins/stellingmigration/1/compatibility/managed.py
+10
-10
10 additions, 10 deletions
...core-plugins/stellingmigration/1/compatibility/managed.py
with
10 additions
and
10 deletions
plasmid/source/core-plugins/stellingmigration/1/
dss/drop-boxes/stellingmigration
/managed.py
→
plasmid/source/core-plugins/stellingmigration/1/
compatibility
/managed.py
+
10
−
10
View file @
65e57c7b
...
...
@@ -196,7 +196,7 @@ def batchColumnNames():
return
allTypes
def
updateFromBatchInput
(
bindings
):
print
"
--------> UPDATE FROM BATCH INPUT:
"
#
print "--------> UPDATE FROM BATCH INPUT: "
elements
=
[]
#Links Configuration
...
...
@@ -206,10 +206,10 @@ def updateFromBatchInput(bindings):
for
annotableSampleType
in
getAllAnnotableSampleTypesForType
(
annotableType
):
annotatedSamples
=
bindings
.
get
(
annotableSampleType
)
print
"
-----> TYPE:
"
+
str
(
annotableSampleType
)
+
"
BINDINGS:
"
+
str
(
annotatedSamples
)
#
print "-----> TYPE: " + str(annotableSampleType) + " BINDINGS: " + str(annotatedSamples)
if
(
annotatedSamples
!=
None
and
annotatedSamples
!=
""
):
#Annotations
print
"
-----> Annotations
"
#
print "-----> Annotations"
if
annotableSampleType
not
in
typesToCopyFrom
:
for
sampleLine
in
annotatedSamples
.
split
(
"
\\
"
):
propertyTypes
=
getPropertyTypesForSampleTypeFromAnnotableType
(
annotableSampleType
,
annotableType
)
...
...
@@ -231,21 +231,21 @@ def updateFromBatchInput(bindings):
if
identifier
is
not
None
:
elements
.
append
(
sampleLink
)
#Links
print
"
-----> links
"
#
print "-----> links"
for
typeToCopyFrom
in
typesToCopyFrom
:
typeToCopy
=
typesToCopyFrom
[
typeToCopyFrom
]
print
"
-----> TYPE TO COPY FROM:
"
+
str
(
typeToCopyFrom
)
print
"
-----> TYPE TO COPY:
"
+
str
(
typeToCopy
)
#
print "-----> TYPE TO COPY FROM: " + str(typeToCopyFrom)
#
print "-----> TYPE TO COPY: " + str(typeToCopy)
identifiersToCopyFrom
=
bindings
.
get
(
typeToCopyFrom
)
if
identifiersToCopyFrom
is
not
None
:
print
"
-----> IDENTIFIERS TO COPY FROM:
"
+
str
(
identifiersToCopyFrom
)
#
print "-----> IDENTIFIERS TO COPY FROM: " + str(identifiersToCopyFrom)
identifiersForCopy
=
identifiersToCopyFrom
.
split
(
'
,
'
)
for
identifierToCopyFrom
in
identifiersForCopy
:
print
"
-----> IDENTIFIER TO COPY FROM:
"
+
str
(
identifierToCopyFrom
)
#
print "-----> IDENTIFIER TO COPY FROM: " + str(identifierToCopyFrom)
permIdFromIdentifier
=
entityInformationProvider
().
getSamplePermId
(
identifierToCopyFrom
)
print
"
-----> PERMID TO COPY FROM:
"
+
str
(
permIdFromIdentifier
)
#
print "-----> PERMID TO COPY FROM: " + str(permIdFromIdentifier)
parentsToCopyFromPermId
=
entityInformationProvider
().
getSamplePropertyValue
(
permIdFromIdentifier
,
"
ANNOTATIONS_STATE
"
)
print
"
-----> ELEMENTS TO COPY:
"
+
str
(
parentsToCopyFromPermId
)
#
print "-----> ELEMENTS TO COPY: " + str(parentsToCopyFromPermId)
parentElements
=
list
(
propertyConverter
().
convertStringToElements
(
parentsToCopyFromPermId
))
for
parentAnnotation
in
parentElements
:
if
parentAnnotation
.
getAttribute
(
"
sampleType
"
)
==
typeToCopy
:
...
...
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