Login  Register

Re: Call QL from SWIG/Python : FittedBondCurve

Posted by Luigi Ballabio on Aug 04, 2008; 2:50pm
URL: http://quantlib.414.s1.nabble.com/Call-QL-from-SWIG-Python-FittedBondCurve-tp12087p12088.html

On Wed, 2008-07-16 at 09:44 +0200, =?ISO-8859-1?Q? Fr=E9d=E9ric_Degraeve
_ wrote:
> Also, I would like to understand where my mistake is. Now, I don't
> find any solutions except making a c++ function  that creates my
> FittedBondDiscountCurve from simple parameters. I guess it is not a
> clean solution.
>
> Firstly, I wrote a swig file to call FittedBondDiscountCurve from
> Python. Secondly, I called it from a python script. Finally, this
> prototype is not recognized.

Try fully qualifying QuantLib::FittedBondDiscountCurve::FittingMethod in
the constructor. If that fails, try exporting
QuantLib::FittedBondDiscountCurve::FittingMethod trough SWIG.

Luigi


--

No, I'm not interested in developing a powerful brain. All I'm after
is just a mediocre brain, something like the president of American
Telephone and Telegraph Company.
-- Alan Turing on the possibilities of a thinking machine, 1943.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev