From 7efbc06af07612113c710c3f9db978f32facba2c Mon Sep 17 00:00:00 2001 From: rgaveiga Date: Fri, 13 Sep 2024 11:28:51 -0300 Subject: [PATCH] Black source --- .gitignore | 11 +++++++---- optionlab/engine.py | 9 ++++++--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 5424959..9e727ff 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ -dist/ -run_check/ -examples/.ipynb_checkpoints/ -optionlab/__pycache__/ +.mypy_cache +.pytest_cache +__pycache__ +dist +run_check +examples/.ipynb_checkpoints +optionlab/__pycache__ tests/__pycache__ tests/.benchmarks diff --git a/optionlab/engine.py b/optionlab/engine.py index 05a322d..bce477b 100644 --- a/optionlab/engine.py +++ b/optionlab/engine.py @@ -5,7 +5,8 @@ from typing import Any from numpy import array, zeros -#from numpy import ndarray + +# from numpy import ndarray from optionlab.black_scholes import get_bs_info, get_implied_vol from optionlab.models import ( @@ -29,8 +30,9 @@ create_price_samples, get_pop, ) -from optionlab.utils import get_nonbusiness_days -#from optionlab.utils import get_pl, pl_to_csv +from optionlab.utils import get_nonbusiness_days + +# from optionlab.utils import get_pl, pl_to_csv def run_strategy(inputs_data: Inputs | dict) -> Outputs: @@ -462,6 +464,7 @@ def _generate_outputs(data: EngineData) -> Outputs: } ) + # TODO: Delete this class in the next version; for now, leave it as a comment # class StrategyEngine: # def __init__(self, inputs_data: Inputs | dict):