Skip to content

Commit

Permalink
translate numpy/python int64 type in py adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 authored and mattw-nws committed Dec 13, 2021
1 parent b29ced5 commit 895708a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/realizations/catchment/Bmi_Py_Adapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 895708a

Please sign in to comment.