Skip to content

Commit

Permalink
Merge pull request #33 from Latios96/fix-default-arguments-mutation
Browse files Browse the repository at this point in the history
fix default argument mutation
  • Loading branch information
inversepixel authored May 28, 2024
2 parents d04c585 + 1efff80 commit a28b009
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/flip/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,11 @@ std::tuple<py::array_t<float>, float, py::dict> evaluate(const py::array_t<float
}
}
delete flip;

py::dict returnParams = {};
updateInputParameters(parameters, returnParams);

updateInputParameters(parameters, inputParameters);

return std::make_tuple(flipNumpy, meanError, inputParameters);
return std::make_tuple(flipNumpy, meanError, returnParams);
}

// Create command line, based on the Python command line string, for the FLIP tool to parse.
Expand Down

0 comments on commit a28b009

Please sign in to comment.