ISISComputingGroup / lewis-ess

Let's write intricate simulators!
GNU General Public License v3.0
21 stars 19 forks source link

Stream adapter fails to bind instance members #282

Closed MikeHart85 closed 4 years ago

MikeHart85 commented 4 years ago

See comment here: https://github.com/ess-dmsc/lewis/issues/235#issuecomment-604887100

Stream adapter throws an exception when trying to bind a device that has instance attributes.

It's caused by some code that is meant to copy the docstrings of properties when binding them. To get the property, it needs to get the attribute from the type of the target. But it didn't take into account that instance members don't exist on the type.

The logic is altered slightly to no longer throw an exception in this case and quietly carry on.