diff --git a/private/python/pybindings.cxx b/private/python/pybindings.cxx index 745c9de71..ffc6afbda 100644 --- a/private/python/pybindings.cxx +++ b/private/python/pybindings.cxx @@ -301,7 +301,6 @@ void export_medium() .add_property("mol_density", &Medium::GetMolDensity) .add_property("average_nucleon_weigth", &Medium::GetMM) .add_property("sum_nucleons", &Medium::GetSumNucleons) - .add_property("components", &Medium::GetComponents) .add_property("num_components", &Medium::GetNumComponents) .add_property("name", &Medium::GetName); @@ -629,7 +628,6 @@ BOOST_PYTHON_MODULE(pyPROPOSAL) to_python_converter, VectorToPythonList >(); - to_python_converter, PVectorToPythonList >(); to_python_converter, PVectorToPythonList >(); to_python_converter, PVectorToPythonList >(); @@ -641,7 +639,6 @@ BOOST_PYTHON_MODULE(pyPROPOSAL) iterable_converter() .from_python >() .from_python > >() - .from_python >() .from_python >() // .from_python >() .from_python >() diff --git a/public/PROPOSAL/medium/Medium.h b/public/PROPOSAL/medium/Medium.h index f0155e3e4..00c86d33b 100644 --- a/public/PROPOSAL/medium/Medium.h +++ b/public/PROPOSAL/medium/Medium.h @@ -93,7 +93,7 @@ class Medium // Getter int GetNumComponents() const { return numComponents_; } - const std::vector GetComponents() const { return components_; } + const std::vector& GetComponents() const { return components_; } double GetSumCharge() const { return sumCharge_; } double GetZA() const { return ZA_; } double GetI() const { return I_; }