Skip to content

Commit 35c48c3

Browse files
committed
default actor execution time
1 parent bc21c99 commit 35c48c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/dataflow/dataflow/libsdf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
from dataflow.libmpm import MaxPlusMatrixModel
88
from fractions import Fraction
99

10+
# constants
11+
DEFAULT_ACTOR_EXECUTION_TIME = 1.0
12+
1013
def _splitMatrix(M, n):
1114
A = []
1215
B = []
@@ -168,7 +171,7 @@ def _newChannelName(self):
168171

169172
def executionTimeOfActor(self, a):
170173
if not 'executionTime' in self._actorSpecs[a]:
171-
return 0
174+
return DEFAULT_ACTOR_EXECUTION_TIME
172175
return self._actorSpecs[a]['executionTime']
173176

174177

0 commit comments

Comments
 (0)