From 895708ae3052ce35687a16cf8c199873f46af262 Mon Sep 17 00:00:00 2001 From: Nels Frazier Date: Mon, 13 Dec 2021 16:43:23 +0000 Subject: [PATCH] translate numpy/python int64 type in py adapter --- include/realizations/catchment/Bmi_Py_Adapter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/realizations/catchment/Bmi_Py_Adapter.hpp b/include/realizations/catchment/Bmi_Py_Adapter.hpp index ba35866033..c2633490a3 100644 --- a/include/realizations/catchment/Bmi_Py_Adapter.hpp +++ b/include/realizations/catchment/Bmi_Py_Adapter.hpp @@ -232,7 +232,7 @@ namespace models { return "int"; } else if (py_type_name == "int" && item_size == sizeof(long)) { return "long"; - } else if (py_type_name == "int" && item_size == sizeof(long long)) { + } else if ( (py_type_name == "int" || py_type_name == "int64") && item_size == sizeof(long long)) { return "long long"; } else if (py_type_name == "longlong" && item_size == sizeof(long long)) { return "long long"; //numpy type