handling exception of no fluctuation average
This commit is contained in:
parent
7b9333b8bc
commit
a71a854a0a
1 changed files with 4 additions and 1 deletions
|
|
@ -639,7 +639,10 @@ class Stage4():
|
||||||
|
|
||||||
mask = self.liveness(l, dg)
|
mask = self.liveness(l, dg)
|
||||||
|
|
||||||
narr = mask.astype(np.int).sum(axis=0).max()
|
try:
|
||||||
|
narr = mask.astype(np.int).sum(axis=0).max()
|
||||||
|
except ValueError:
|
||||||
|
narr = 0
|
||||||
|
|
||||||
array_pool = set([self.array_name.format(i) for i in range(narr)])
|
array_pool = set([self.array_name.format(i) for i in range(narr)])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue