Skip to content

Fix unused tol variable in SVI notebook (issue #226)#235

Open
Bortlesboat wants to merge 1 commit intodomokane:masterfrom
Bortlesboat:fix-notebook-calibration-args
Open

Fix unused tol variable in SVI notebook (issue #226)#235
Bortlesboat wants to merge 1 commit intodomokane:masterfrom
Bortlesboat:fix-notebook-calibration-args

Conversation

@Bortlesboat
Copy link

Summary

  • Removes the unused tol = 1e-4 assignment in EquityVolSurfaceConstructionSVI.ipynb cell 12
  • The EquityVolSurface.check_calibration() method signature is check_calibration(self, verbose: bool) — it does not accept a tol parameter (unlike the FX/Swaption vol surface variants which do)
  • The notebook call was previously equitySurface.check_calibration(False, tol) which raised TypeError: EquityVolSurface.check_calibration() takes 2 positional arguments but 3 were given
  • The call itself was already corrected to check_calibration(False) in a prior commit, but the dead tol = 1e-4 variable definition was left behind — this PR cleans it up

Closes #226

Test plan

  • Verified EquityVolSurface.check_calibration signature accepts only (self, verbose: bool)
  • Confirmed the notebook cell source is now just equitySurface.check_calibration(False) with no unused variables
  • Checked all other notebooks with check_calibration calls — they are all correct

The EquityVolSurface.check_calibration() method only accepts a single
argument (verbose: bool), but the notebook previously called it with
(False, tol). The call was fixed to check_calibration(False) but the
unused tol = 1e-4 assignment was left behind. Remove it.

Closes domokane#226
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EquityVolSurfaceConstructionSVI.ipynb EquityVolSurface.check_calibration() too many arguments

1 participant