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

configuration of array[real] not safe #218

Closed
wdeconinck opened this issue May 28, 2012 · 1 comment
Closed

configuration of array[real] not safe #218

wdeconinck opened this issue May 28, 2012 · 1 comment
Assignees
Labels

Comments

@wdeconinck
Copy link
Member

A component with an option array[real] is configured with: [ 1 , 1.1 , 1.2 , 1.3 ]
Notice that the first element is not explicitly a floating point value

What got actually set is a vector of [ 1, 1 , 1 ,1 ] . So it truncated the floating point values.

This is unexpected and unsafe behavior . Especially because these values might just come from python variables of integer type.

This is by the way the reason why atest-sdm-euler-cylinder-2d test was failing. Before this was working correctly.

Can I assign @barche to fix this?

@ghost ghost assigned barche May 28, 2012
@barche
Copy link
Member

barche commented May 29, 2012

OK, I'm looking into changes to the option system anyway, required to properly use OptionComponent with Python and the GUI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants