On 17 Feb 2020, at 19:12, georgep <[email protected]> wrote:
I am starting to write some python code using cctbx, but am missing how to use the C++ bindings._______________________________________________I am fine unless a try to access them. Something about my environment or boost of something.Can anyone point me in the right direction?
I haveimport boost.python
but am cleary missing some fundamental knowledge.
George
Traceback (most recent call last):File "/Users/georgep/PycharmProjects/test_env/HIO_Version3.py", line 225, in <module>S0 = percentile[rho_calc_true > percentile(rho_calc_true, solv_frac)] = 1File "/Users/georgep/PycharmProjects/test_env/HIO_Version3.py", line 216, in percentileorder = flex.sort_permutation(x)Boost.Python.ArgumentError: Python argument types inscitbx_array_family_flex_ext.sort_permutation(double)did not match C++ signature:sort_permutation(scitbx::af::const_ref<double, scitbx::af::trivial_accessor> data, bool reverse=False, bool stable=True)sort_permutation(scitbx::af::const_ref<unsigned long, scitbx::af::trivial_accessor> data, bool reverse=False, bool stable=True)sort_permutation(scitbx::af::const_ref<int, scitbx::af::trivial_accessor> data, bool reverse=False, bool stable=True)
George N. Phillips, Jr.
Ralph and Dorothy Looney Professor
BioSciences at Rice
Rice University, MS140
6100 Main Street
Houston, Texas 77005-1892
Office: +1 713.348.6951
cctbxbb mailing list
[email protected]
http://phenix-online.org/mailman/listinfo/cctbxbb
--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom