Apply suggestions from code review.

Co-authored-by: Ryan Curtin <ryan@ratml.org>
This commit is contained in:
Marcus Edel
2021-06-22 12:47:25 -04:00
committed by GitHub
co-authored by Ryan Curtin
parent 9fc0513b26
commit 8c09b1f4a7
2 changed files with 4 additions and 4 deletions
@@ -130,13 +130,13 @@ void PrintClassDefn(
std::cout << " def get_cpp_params(self, return_str=False):" << std::endl;
std::cout << " params = self._get_cpp_params()" << std::endl;
std::cout << " return process_params_out(self, params, "
<< "return_str=return_str)" << std::endl;
<< "return_str=return_str)" << std::endl;
std::cout << std::endl;
std::cout << " def set_cpp_params(self, params_dic):" << std::endl;
std::cout << " params_str = process_params_in(self, params_dic)"
<< std::endl;
<< std::endl;
std::cout << " self._set_cpp_params(params_str.encode(\"utf-8\"))"
<< std::endl;
<< std::endl;
std::cout << std::endl;
}
+1 -1
View File
@@ -81,7 +81,7 @@ void PrintPYX(const util::BindingDetails& doc,
<< "ResetTimers, EnableTimers" << endl;
cout << "from matrix_utils import to_matrix, to_matrix_with_info" << endl;
cout << "from preprocess_json_params import process_params_out, "
<< "process_params_in" << endl;
<< "process_params_in" << endl;
cout << "from serialization cimport SerializeIn, SerializeOut, "
<< "SerializeOutJSON, SerializeInJSON" << endl;
cout << endl;