Skip to content

Commit

Permalink
FEAT: Fix bug involving negative exponentiation of integers.
Browse files Browse the repository at this point in the history
  • Loading branch information
genedan committed Jan 3, 2025
1 parent bdf73c4 commit 25b542a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faslr/index/index_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def relative_index(
res = {}
for x in range(len(years)):
if years[x] < base_yr:
adj = np.array(index[x+1:idx + 1]).prod() ** - 1
adj = float(np.array(index[x+1:idx + 1]).prod()) ** - 1
else:
adj = np.array(index[idx + 1:x + 1]).prod()
res[str(years[x])] = adj
Expand Down

0 comments on commit 25b542a

Please sign in to comment.