[cctbxbb] Quick Boost python question
Nicholas Sauter
nksauter at lbl.gov
Tue Feb 21 17:08:06 PST 2017
<http://phenix-online.org/mailman/listinfo/cctbxbb>Quick 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20170221/17111776/attachment.htm>
More information about the cctbxbb
mailing list