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
3ed27d8f
Commit
3ed27d8f
authored
Sep 17, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix dummy simpy implementation
parent
3ffbc9e5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+8
-5
No files found.
dream/simulation/LineGenerationJSON.py
View file @
3ed27d8f
...
...
@@ -25,18 +25,25 @@ Created on 7 May 2013
'''
main script. Reads data from JSON, generates and runs the simulation and prints the results to excel
'''
from
warnings
import
warn
import
logging
logger
=
logging
.
getLogger
(
"dream.platform"
)
try
:
import
scipy
except
ImportError
:
class
scipy
:
class
stats
:
@
staticmethod
def
bayes_mvs
():
def
bayes_mvs
(
*
args
,
**
kw
):
warn
(
"Scipy is missing, using fake implementation"
)
return
[[[
0
]
*
3
]
*
3
]
*
3
import
sys
sys
.
modules
[
'scipy.stats'
]
=
scipy
.
stats
sys
.
modules
[
'scipy'
]
=
scipy
logger
.
error
(
"Scipy cannot be imported, using dummy implementation"
)
from
SimPy.Simulation
import
*
from
Source
import
Source
...
...
@@ -59,10 +66,6 @@ from random import Random
import
sys
import
os.path
import
logging
logger
=
logging
.
getLogger
(
"dream.platform"
)
#reads general simulation inputs
def
readGeneralInput
():
general
=
G
.
JSONData
[
'general'
]
...
...
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