Index: trunk/tools/wsor/editor_lifecycle/lifecycle/cvsmooth.py |
— | — | @@ -108,9 +108,12 @@ |
109 | 109 | kwds=kwds) |
110 | 110 | results.append(res) |
111 | 111 | results = np.asarray(map(ApplyResult.get, results)) |
112 | | - xerr = np.std(results[:,0], ddof=1, axis=0) |
113 | | - # geometric standard deviation |
114 | | - yerr = np.exp(np.std(np.log(results[:,1]), ddof=1)) |
| 112 | + if len(results): |
| 113 | + xerr = np.std(results[:,0], ddof=1, axis=0) |
| 114 | + # geometric standard deviation |
| 115 | + yerr = np.exp(np.std(np.log(results[:,1]), ddof=1)) |
| 116 | + else: |
| 117 | + xerr, yerr = np.nan, np.nan |
115 | 118 | finally: |
116 | 119 | pool.terminate() |
117 | 120 | pool.join() |