EnEff-BIM / EnEffBIM-Framework

translating from BIM to BEPS
MIT License
8 stars 0 forks source link

Datatype conversion #58

Closed PRemmen closed 9 years ago

PRemmen commented 9 years ago

Right now we need to do a lot of manual Datatype conversion in the Python Wrapper (creating all classes, and also have a lot of conversion methods with if clauses). Apparently this is because of severall things like differences in C++ and Python, Structure of SimModel, and Wrapper technology.

This is an issue without any satisfying solution, so just to keep it in our minds.

TobiasMaile commented 9 years ago

We need to address this issue, at least we should be able to provide a data type for each property so we can do datatype conversions "automatically".

Let's discuss this in our next call.

PRemmen commented 9 years ago

Agree that we need to address this issue, still this would blow up the python wrapper enormously due to the number of SimModel instances (of course it would work for first use case as a first step)

math-boy commented 9 years ago

This problem is just resolved after we passing the data type of a simmodel component from C++ into Python. Now the Python code can do the automated type conversion.