Skip to content

Commit ddeb647

Browse files
committed
Merge branch 'test_pip_shared' of https://github.com/LLNL/units into test_pip_shared
2 parents f1a5c2e + d6399dd commit ddeb647

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

python/units_python.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ NB_MODULE(units_llnl_ext, mod)
563563
std::stringstream ss;
564564
ss.precision(12);
565565
ss << measurement.value();
566-
result= ss.str();
566+
result = ss.str();
567567
} else if (fmt_string.front() == '-') {
568568
auto target_unit =
569569
units::unit_from_string(fmt_string.substr(1));
@@ -581,7 +581,7 @@ NB_MODULE(units_llnl_ext, mod)
581581
std::stringstream ss;
582582
ss.precision(12);
583583
ss << new_value;
584-
result= ss.str();
584+
result = ss.str();
585585
} else {
586586
auto target_unit = units::unit_from_string(fmt_string);
587587
if (!units::is_valid(target_unit)) {
@@ -746,9 +746,7 @@ NB_MODULE(units_llnl_ext, mod)
746746
nb::is_operator())
747747
.def(
748748
"__invert__",
749-
[](const Dimension& dim) {
750-
return Dimension{dim.base.inv()};
751-
})
749+
[](const Dimension& dim) { return Dimension{dim.base.inv()}; })
752750
.def(
753751
"__pow__",
754752
[](const Dimension& dim, int power) {

0 commit comments

Comments
 (0)