![](https://secure.gravatar.com/avatar/29a7f7f0cd76746320e0e94bc11cebf9.jpg?s=120&d=mm&r=g)
22 Feb
2017
22 Feb
'17
1:08 a.m.
http://phenix-online.org/mailman/listinfo/cctbxbbQuick question from James Holton and myself. We want to use a boost python *.add_property() to add a make_getter and make_setter to our wrapper, so we can expose a class variable to the Python layer. However, we want to execute a change of measurement units, i.e., the Python value will always be given in millimetres, and the C++ value always in metres. How can this be done within a simple add_property() paradigm? Nick