Skip to content

Commit 67641e0

Browse files
committed
first part of fix for cash_flows
1 parent 6e12608 commit 67641e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

climada/trajectories/trajectory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def _calc_npv_cash_flows(
190190
if not disc_rates:
191191
return cash_flows
192192

193-
if not isinstance(cash_flows.index, pd.DatetimeIndex):
193+
if not isinstance(cash_flows.index, pd.PeriodIndex):
194194
raise ValueError("cash_flows must be a pandas Series with a datetime index")
195195

196196
df = cash_flows.to_frame(name="cash_flow")

0 commit comments

Comments
 (0)