Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
481d8614
Commit
481d8614
authored
Feb 27, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify the way attainment is evaluated
parent
173d1248
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
dream/platform/static/src/dream.js
dream/platform/static/src/dream.js
+2
-3
dream/simulation/GUI/Batches.py
dream/simulation/GUI/Batches.py
+0
-8
No files found.
dream/platform/static/src/dream.js
View file @
481d8614
...
...
@@ -527,13 +527,12 @@
if
(
metric
==
'
intervalThroughputList
'
)
{
var
attainment_list
=
[],
general
=
that
.
getData
().
general
,
throughputTarget
=
parseFloat
(
general
.
throughputTarget
),
desiredPercentageOfSuccess
=
parseFloat
(
general
.
desiredPercentageOfSuccess
);
throughputTarget
=
parseFloat
(
general
.
throughputTarget
);
text
+=
"
<tr><td>Daily Attainment</td><td>
"
$
.
each
(
value
,
function
(
i
,
intervalValue
)
{
var
icon
=
"
fa-frown-o
"
;
attainment_list
.
push
((
intervalValue
/
throughputTarget
));
if
(
(
intervalValue
/
throughputTarget
)
>
desiredPercentageOfSuccess
)
{
if
(
intervalValue
>
throughputTarget
)
{
icon
=
"
fa-smile-o
"
}
text
+=
intervalValue
+
'
<i class="fa
'
+
icon
+
'
"/><br/>
'
;
...
...
dream/simulation/GUI/Batches.py
View file @
481d8614
...
...
@@ -75,14 +75,6 @@ class Simulation(ShiftsSimulation):
"type"
:
"number"
,
"_class"
:
"Dream.Property"
,
"_default"
:
10
})
conf
[
"Dream-Configuration"
][
"property_list"
].
append
(
{
"id"
:
"desiredPercentageOfSuccess"
,
"name"
:
"Desired Percentage Of Success"
,
"description"
:
"The desired percentage of success to determine if daily"
" throughput target has been met."
,
"type"
:
"number"
,
"_class"
:
"Dream.Property"
,
"_default"
:
0.85
})
# remove tools that does not make sense here
conf
.
pop
(
'Dream-Machine'
)
...
...
Write
Preview
Markdown
is supported
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