Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main2 in bond_test_code.jl #3

Closed
EricForgy opened this issue Mar 2, 2016 · 2 comments
Closed

main2 in bond_test_code.jl #3

EricForgy opened this issue Mar 2, 2016 · 2 comments

Comments

@EricForgy
Copy link

julia> versioninfo()
Julia Version 0.4.2
Commit bb73f34 (2015-12-06 21:47 UTC)
Platform Info:
  System: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

Hi @pazzo83 ,

I'm just starting to kick things around a little and tried bond_test_code.jl. main() and main3() run fine, but got the following error on main2():

julia> main2()
ERROR: MethodError: `npv` has no method matching npv(::QuantLib.ZeroCouponBond{Int64,QuantLib.DiscountingBondEngine{QuantLib.PiecewiseYieldCurve{Int64,QuantLib.BootstrapHelper,QuantLib.Time.ISDAActualActual,QuantLib.Math.LogInterpolation,QuantLib.Discount,QuantLib.IterativeBootstrap}}}, ::QuantLib.DiscountingBondEngine{QuantLib.PiecewiseYieldCurve{Int64,QuantLib.BootstrapHelper,QuantLib.Time.ISDAActualActual,QuantLib.Math.LogInterpolation,QuantLib.Discount,QuantLib.IterativeBootstrap}})
Closest candidates are:
  npv{B<:QuantLib.Bond}(::B<:QuantLib.Bond)
  npv(::QuantLib.Instrument)
 in main2 at C:\Users\Eric Forgy\.julia\v0.4\QuantLib\examples\bond_test_code.jl:424

I'll have a look, but wanted to let you know.

Cheers!

@pazzo83
Copy link
Owner

pazzo83 commented Mar 2, 2016

Ah yes, thank you! I had forgotten about that method, its functionality is basically encapsulated in main3 (how do you like my test function names!). I'll comment that whole method out.

@EricForgy
Copy link
Author

Cool. Makes sense. Thanks :)

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

No branches or pull requests

2 participants