Skip to content

Commit ee8512d

Browse files
committed
FEATURE: making variable private
1 parent 43425ee commit ee8512d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pdesolvers/optionspricing/monte_carlo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(self, option_type: OptionType, S0, strike_price, r, sigma, T, time_
2828
self.__time_steps = time_steps
2929
self.__sim = sim
3030
self.__S = None
31-
self.duration = 0.0
31+
self.__duration = 0.0
3232

3333
def get_monte_carlo_option_price(self):
3434

@@ -104,4 +104,4 @@ def plot(self):
104104
plt.show()
105105

106106
def get_execution_time(self):
107-
return self.duration
107+
return self.__duration

0 commit comments

Comments
 (0)