coolfluid / coolfluid3

COOLFluiD is a collaborative simulation environment focused on complex multi-physics simulations
http://coolfluid.github.com
76 stars 77 forks source link

component's signal_configure and python compatibility #201

Closed tbanyai closed 12 years ago

tbanyai commented 12 years ago

Right now, configuring an option via signal_configure like this: env.configure(log_level:unsigned=5) is not possible because ':' is a special character and the python parser throws it off with 'Invalid Syntax'.

wdeconinck commented 12 years ago

shouldn't it be env.configure("log_level:unsigned=5") with quotes?

barche commented 12 years ago

The correct syntax would be: env.configure(assertion_throws = False, assertion_backtrace=False, exception_backtrace=False, regist_signal_handlers=False, log_level=4)

Unfortunately, this doesn't actually work, so I'll take the issue ;)

tbanyai commented 12 years ago

Nope ;) env.configure('log_level:unsigned=5') doesnt know what to do with the string env.configure(assertion_throws = False) ends up a conversion error from boost::any

barche commented 12 years ago

This is now fixed, the env.configure(assertion_throws = False, assertion_backtrace=False, exception_backtrace=False, regist_signal_handlers=False, log_level=4) syntax should work now.