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
babdbd38
Commit
babdbd38
authored
Jun 13, 2014
by
panos
Committed by
Jérome Perrin
Jun 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixed in AssemblyDismantle example
parent
d8b4f0d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
dream/KnowledgeExtraction/KEtool_examples/AssembleDismantle/AssembleDismantle_example.py
...l_examples/AssembleDismantle/AssembleDismantle_example.py
+0
-11
No files found.
dream/KnowledgeExtraction/KEtool_examples/AssembleDismantle/AssembleDismantle_example.py
View file @
babdbd38
...
...
@@ -27,8 +27,6 @@ from ReplaceMissingValues import HandleMissingValues
from
DistributionFitting
import
Distributions
from
DistributionFitting
import
DistFittest
from
ExcelOutput
import
Output
import
dream.simulation.LineGenerationJSON
as
ManPyMain
#import ManPy main JSON script
import
xlrd
import
json
...
...
@@ -91,12 +89,3 @@ C.PrintStatisticalMeasures(MTTR,'MTTR_StatResults.xls')
C
.
PrintStatisticalMeasures
(
MTTF
,
'MTTF_StatResults.xls'
)
C
.
PrintDistributionFit
(
ProcTime
,
'ProcTime_DistFitResults.xls'
)
C
.
PrintDistributionFit
(
MTTR
,
'MTTR_DistFitResults.xls'
)
# calls ManPy main script with the input
simulationOutput
=
ManPyMain
.
main
(
input_data
=
json
.
dumps
(
data
))
# save the simulation output
jsonFile
=
open
(
'ManPyOutput.json'
,
"w"
)
#It opens the JSON file
jsonFile
.
write
(
simulationOutput
)
#It writes the updated data to the JSON file
jsonFile
.
close
()
#It closes the file
\ No newline at end of file
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