Skip to content

Commit

Permalink
Fixing compile errors.
Browse files Browse the repository at this point in the history
Signed-off-by: Joey Kleingers <[email protected]>
  • Loading branch information
joeykleingers committed Nov 23, 2024
1 parent 6b515f8 commit 560e05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugins/SimplnxCore/wrapping/python/simplnxpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ PYBIND11_MODULE(simplnx, mod)
return NumericType::float64;
}

std::string dtypeStr = py::str(dtype);
std::string dtypeStr = py::str(static_cast<py::object>(dtype));
throw std::invalid_argument(fmt::format("Unable to convert dtype to NumericType: Unsupported dtype '{}'.", dtypeStr));
},
"Convert numpy dtype to simplnx NumericType", "dtype"_a);
Expand Down

0 comments on commit 560e05d

Please sign in to comment.