Skip to content

Commit

Permalink
Revert "Python: Warn old warpx.multifab Signature (#5326)"
Browse files Browse the repository at this point in the history
This reverts commit 78cf034.
  • Loading branch information
RemiLehe committed Nov 12, 2024
1 parent 1b27071 commit 73fefd5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Source/Python/WarpX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@ void init_WarpX (py::module& m)
)
.def("multifab",
[](WarpX & wx, std::string internal_name) {
py::print("WARNING: WarpX' multifab('internal_name') signature is deprecated.\nPlease use:\n"
"- multifab('prefix', level=...) for scalar fields\n"
"- multifab('prefix', dir=..., level=...) for vector field components\n"
"where 'prefix' is the part of 'internal_name';' before the []",
py::arg("file") = py::module_::import("sys").attr("stderr"));
if (wx.m_fields.internal_has(internal_name)) {
return wx.m_fields.internal_get(internal_name);
} else {
Expand Down

0 comments on commit 73fefd5

Please sign in to comment.