Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
1b7187d8
Commit
1b7187d8
authored
Aug 11, 2017
by
Jens Korinth
Browse files
Remove restriction for minimum of one dimension in DSE
parent
485abb90
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/tapasco/jobs/json/package.scala
View file @
1b7187d8
...
...
@@ -106,13 +106,11 @@ package object json {
/* ComposeJob @} */
/* @{ DesignSpaceExplorationJob */
private
def
atLeastOneVariation
(
d
:
DesignSpace.Dimensions
)
:
Boolean
=
d
.
frequency
||
d
.
utilization
||
d
.
alternatives
private
val
dseJobReads
:
Reads
[
Job
]
=
(
(
JsPath
\
"Job"
).
read
[
String
]
(
verifying
[
String
](
_
.
toLowerCase
equals
"designspaceexploration"
))
~>
(
JsPath
\
"Initial Composition"
).
read
[
Composition
]
~
(
JsPath
\
"Initial Frequency"
).
readNullable
[
Heuristics.Frequency
].
map
(
_
getOrElse
100.0
)
~
(
JsPath
\
"Dimensions"
).
read
[
DesignSpace.Dimensions
]
(
verifying
[
DesignSpace.Dimensions
](
atLeastOneVariation
_
))
~
(
JsPath
\
"Dimensions"
).
read
[
DesignSpace.Dimensions
]
~
(
JsPath
\
"Heuristic"
).
read
[
Heuristics.Heuristic
]
~
(
JsPath
\
"Batch Size"
).
read
[
Int
]
(
verifying
[
Int
](
_
>
0
))
~
(
JsPath
\
"Output Path"
).
readNullable
[
Path
]
~
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment