Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 14, 2023
1 parent c7a9a7a commit cdd0025
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/bh_python/axis.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ py::array_t<double> edges(const A& ax, bool flow = false, bool numpy_upper = fal
for(index_type i = -underflow; i <= ax.size() + overflow; ++i)
edges.mutable_at(i + underflow) = ax.value(i);

if(numpy_upper && !(std::is_same<A, axis::regular_none>::value || std::is_same<A, axis::regular_numpy>::value) ) {
if(numpy_upper
&& !(std::is_same<A, axis::regular_none>::value
|| std::is_same<A, axis::regular_numpy>::value)) {
edges.mutable_at(ax.size() + underflow) = std::nextafter(
edges.at(ax.size() + underflow), std::numeric_limits<double>::min());
}
Expand Down

0 comments on commit cdd0025

Please sign in to comment.