Skip to content

Commit 895708a

Browse files
hellkite500mattw-nws
authored andcommitted
translate numpy/python int64 type in py adapter
1 parent b29ced5 commit 895708a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/realizations/catchment/Bmi_Py_Adapter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ namespace models {
232232
return "int";
233233
} else if (py_type_name == "int" && item_size == sizeof(long)) {
234234
return "long";
235-
} else if (py_type_name == "int" && item_size == sizeof(long long)) {
235+
} else if ( (py_type_name == "int" || py_type_name == "int64") && item_size == sizeof(long long)) {
236236
return "long long";
237237
} else if (py_type_name == "longlong" && item_size == sizeof(long long)) {
238238
return "long long"; //numpy type

0 commit comments

Comments
 (0)