Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
f36e6431
Commit
f36e6431
authored
8 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
No private mutable
(cherry picked from commit
9e6a44e1
)
parent
60472a15
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
biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/WriteDependencies.scala
+5
-7
5 additions, 7 deletions
...in/scala/nl/lumc/sasc/biopet/core/WriteDependencies.scala
with
5 additions
and
7 deletions
biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/WriteDependencies.scala
+
5
−
7
View file @
f36e6431
...
...
@@ -30,18 +30,16 @@ import scala.collection.mutable.ListBuffer
*/
object
WriteDependencies
extends
Logging
with
Configurable
{
val
root
:
Configurable
=
null
private
val
functionNames
:
mutable.Map
[
QFunction
,
String
]
=
mutable
.
Map
()
private
def
createFunctionNames
(
functions
:
Seq
[
QFunction
])
:
Unit
=
{
private
def
createFunctionNames
(
functions
:
Seq
[
QFunction
])
:
Map
[
QFunction
,
String
]
=
{
val
cache
:
mutable.Map
[
String
,
Int
]
=
mutable
.
Map
()
for
(
function
<-
functions
)
{
(
for
(
function
<-
functions
)
yield
{
val
baseName
=
function
match
{
case
f
:
Configurable
=>
f
.
configNamespace
case
f
=>
f
.
getClass
.
getSimpleName
}
cache
+=
baseName
->
(
cache
.
getOrElse
(
baseName
,
0
)
+
1
)
functionNames
+=
function
->
s
"$baseName-${cache(baseName)}"
}
function
->
s
"$baseName-${cache(baseName)}"
}
).
toMap
}
/**
...
...
@@ -55,7 +53,7 @@ object WriteDependencies extends Logging with Configurable {
val
errorOnMissingInput
:
Boolean
=
config
(
"error_on_missing_input"
,
false
)
createFunctionNames
(
functions
)
val
functionNames
=
createFunctionNames
(
functions
)
case
class
QueueFile
(
file
:
File
)
{
private
val
inputJobs
:
ListBuffer
[
QFunction
]
=
ListBuffer
()
...
...
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