Kuad commited on
Commit
8dc00a3
·
verified ·
1 Parent(s): 8ddd02c

Give a warning: "No available symbols in `Symbols` box." in figure box.

Browse files
Files changed (1) hide show
  1. utils.py +2 -0
utils.py CHANGED
@@ -57,6 +57,8 @@ def Kline_predict_plot(model_id, symbols, user_opinion, frequency, feature_satur
57
  bars = pd.DataFrame(vi)
58
  bars.index = bars.index.map(pd.Timestamp)
59
  figs.append(plot_Klines_fig(bars, codei))
 
 
60
  return ','.join(coins_not_available) if len(coins_not_available) > 0 else 'No one', figs
61
 
62
 
 
57
  bars = pd.DataFrame(vi)
58
  bars.index = bars.index.map(pd.Timestamp)
59
  figs.append(plot_Klines_fig(bars, codei))
60
+ if len(figs) < 1:
61
+ figs = [plot_txt('No available symbols in `Symbols` box.')]
62
  return ','.join(coins_not_available) if len(coins_not_available) > 0 else 'No one', figs
63
 
64