Skip to content

Commit

Permalink
Fix numpy 2 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed Jun 23, 2024
1 parent 03bc204 commit 6b8144b
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 88 deletions.
4 changes: 2 additions & 2 deletions bt/algos.py
Original file line number Diff line number Diff line change
Expand Up @@ -2260,9 +2260,9 @@ def _setup_risk(self, target, set_history):

def _setup_measure(self, target, set_history):
"""Setup a risk measure within the risk attributes on the node in question"""
target.risk[self.measure] = np.NaN
target.risk[self.measure] = np.nan
if set_history:
target.risks[self.measure] = np.NaN
target.risks[self.measure] = np.nan

def _set_risk_recursive(self, target, depth, unit_risk_frame):
set_history = depth < self.history
Expand Down
Loading

0 comments on commit 6b8144b

Please sign in to comment.