aboutsummaryrefslogtreecommitdiffstats
path: root/run.py
diff options
context:
space:
mode:
authorShivesh Mandalia <shivesh.mandalia@outlook.com>2020-04-20 00:03:47 +0100
committerShivesh Mandalia <shivesh.mandalia@outlook.com>2020-04-20 00:03:47 +0100
commit1c8649fdcd9f56cca5b191ae3cbaec4977569380 (patch)
tree14299d85de895df774a5c2b5b44ee3d10e0f5f7f /run.py
parent92375e2d232538c72e9dfe7d6f067dfcc7e5979f (diff)
downloadMCOptionPricing-1c8649fdcd9f56cca5b191ae3cbaec4977569380.tar.gz
MCOptionPricing-1c8649fdcd9f56cca5b191ae3cbaec4977569380.zip
Linting, type checking
Diffstat (limited to 'run.py')
-rwxr-xr-xrun.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/run.py b/run.py
index 6a280e8..e8ec3f1 100755
--- a/run.py
+++ b/run.py
@@ -210,11 +210,10 @@ options, and thus this is priced in.''')
def main() -> None:
- """Main function."""
random.seed(1)
# Define number of trials to run
- ntrials_arr = [1E4, 1E5, 1E6]
+ ntrials_arr = list(map(int, [1e4, 1e5, 1e6]))
# Pricing Asian options
asian_options(ntrials_arr)