OpenSourceRisk / Engine

Open Source Risk Engine
http://www.opensourcerisk.org
Other
505 stars 221 forks source link

the ore-python modules is missing the method: "setScriptLibrary" #258

Open JulianGong opened 3 months ago

JulianGong commented 3 months ago
import ORE as ore
params = ore.InputParameters()
print(params.__dir__())

I found that it is missing the method: "setScriptLibrary".

rkapl123 commented 3 months ago

Hi Julian!

The ORE SWIG is missing a lot of methods (and classes), as stated in the "Contributing" section of https://github.com/OpenSourceRisk/ORE-SWIG "The easiest way to contribute additional interface files is through pull requests on GitHub. .... We're looking forward to your contributions."

Judging from the c++ code, a swig implementation for this should be straightforward and similar to

    void setTodaysMarketParams(const std::string& xml);
    void setTodaysMarketParamsFromFile(const std::string& fileName);

Besides contributing a pull request, if you're really interested in that method, a better place for this is https://github.com/OpenSourceRisk/ORE-SWIG/issues

-regards Roland