Skip to content

Commit

Permalink
Added check for missing FDM in diagoutput
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishal Grover committed Dec 13, 2024
1 parent 7dd3b52 commit 64ba580
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions systems/diagoutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,10 @@ def forecast_div_multiplier(self):
for instrument in instrument_list:
fdm = system.combForecast.get_forecast_diversification_multiplier(
instrument
).values[-1]
fdm_results[instrument] = float(fdm)
)

if len(fdm) > 0:
fdm_results[instrument] = float(fdm.values[-1])

return fdm_results

Expand Down

0 comments on commit 64ba580

Please sign in to comment.