Skip to content

Commit 5fb335f

Browse files
author
Rolf Johan Lorentzen
committed
Fix error in disconunt factor
1 parent 6d97c7a commit 5fb335f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

popt/cost_functions/ecalc_npv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ def ecalc_npv(pred_data, **kwargs):
9595
Qwi [l]= np.expand_dims(Qwi[l], 0)
9696

9797
N = Qop[l].shape[0]
98-
T = Qop[l].shape[1]
98+
NT = Qop[l].shape[1]
9999
values = []
100100
em_values = []
101101
for n in range(N):
102102
with open('ecalc_input.csv', 'w') as csvfile:
103103
writer = csv.writer(csvfile, delimiter=',')
104104
writer.writerow(['dd/mm/yyyy', 'GAS_PROD', 'OIL_PROD', 'WATER_INJ'])
105-
for t in range(T):
105+
for t in range(NT):
106106
D = report[1][t]
107107
writer.writerow([D.strftime("%d/%m/%Y"), Qgp[l][n, t]/Dd[t], Qop[l][n, t]/Dd[t], Qwi[l][n, t]/Dd[t]])
108108

0 commit comments

Comments
 (0)