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
9b3e3987
Commit
9b3e3987
authored
Mar 18, 2014
by
panos
Committed by
Jérome Perrin
Mar 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change in runKnowledge extraction method
parent
6c4e0283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
dream/platform/__init__.py
dream/platform/__init__.py
+1
-13
No files found.
dream/platform/__init__.py
View file @
9b3e3987
...
...
@@ -192,19 +192,7 @@ def _runKnowledgeExtraction(parameter_dict):
for
element
in
ProcessingTimes
:
#This loop searches the elements of the Excel imported data and if these elements exist in json file append the distribution fitting results in a dictionary
if
element
in
lista
:
fitDict
=
B
.
ks_test
(
ProcessingTimes
[
element
])
aParameter
=
fitDict
.
get
(
'aParameter'
)
bParameter
=
fitDict
.
get
(
'bParameter'
)
distributionType
=
fitDict
.
get
(
'distributionType'
)
aParameterValue
=
fitDict
.
get
(
'aParameterValue'
)
bParameterValue
=
fitDict
.
get
(
'bParameterValue'
)
dictToAdd
=
{}
dictToAdd
[
'distributionType'
]
=
distributionType
if
aParameter
:
dictToAdd
[
aParameter
]
=
aParameterValue
if
bParameter
:
dictToAdd
[
bParameter
]
=
bParameterValue
parameter_dict
[
'nodes'
][
element
][
'processingTime'
]
=
dictToAdd
parameter_dict
[
'nodes'
][
element
][
'processingTime'
]
=
element
return
dict
(
success
=
True
,
data
=
parameter_dict
)
except
Exception
,
e
:
tb
=
traceback
.
format_exc
()
...
...
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