Skip to content

Commit 32df72e

Browse files
committed
fixed issue with SR and no analyzer result
1 parent 24f2acc commit 32df72e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

btplotting/analyzer_tables/sharperatio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@ def datatable(self):
66
cols[0].append('Sharpe-Ratio')
77

88
a = self.get_analysis()
9-
cols[1].append(a['sharperatio'])
9+
if len(a):
10+
cols[1].append(a['sharperatio'])
11+
else:
12+
cols[1].append('')
1013
return 'Sharpe-Ratio', [cols]

0 commit comments

Comments
 (0)