21 Feb
2017
21 Feb
'17
10:08 p.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