Skip to content

Commit

Permalink
Python and C++ formatting changes.
Browse files Browse the repository at this point in the history
To get past CI format checkers.
  • Loading branch information
david-cattermole committed Jan 26, 2025
1 parent 7d66b1a commit 247b0e0
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/mmSolver/adjust/adjust_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@
#define CERES_LMDER_SUPPORT_PARAMETER_BOUNDS_VALUE true
#define CERES_LMDER_SUPPORT_ROBUST_LOSS_VALUE false


// Levmar Solver default flag values
//
#define LEVMAR_ITERATIONS_DEFAULT_VALUE (100)
Expand Down
1 change: 0 additions & 1 deletion src/mmSolver/adjust/adjust_relationships.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ int countUpNumberOfUnknownParameters(
std::vector<double> &out_paramWeightList,
IndexPairList &out_paramToAttrList,
mmsolver::MatrixBool2D &out_paramFrameList, MStatus &out_status) {

out_status = MStatus::kSuccess;

const auto frameCount = frameList.length();
Expand Down
8 changes: 4 additions & 4 deletions src/mmSolver/adjust/adjust_results.h
Original file line number Diff line number Diff line change
Expand Up @@ -602,10 +602,10 @@ struct AffectsResult {

void fill(const MarkerPtrList &markerList, const AttrPtrList &attrList,
const mmsolver::MatrixBool2D &markerToAttrMatrix) {
for (uint32_t markerIndex = 0;
markerIndex < markerToAttrMatrix.width(); ++markerIndex) {
for (uint32_t attrIndex = 0; attrIndex < markerToAttrMatrix.height();
++attrIndex) {
for (uint32_t markerIndex = 0; markerIndex < markerToAttrMatrix.width();
++markerIndex) {
for (uint32_t attrIndex = 0;
attrIndex < markerToAttrMatrix.height(); ++attrIndex) {
MarkerPtr marker = markerList[markerIndex];
AttrPtr attr = attrList[attrIndex];

Expand Down
1 change: 0 additions & 1 deletion tests/test/test_solver/test10.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ def test_init_ceres_lmder_mmscenegraph(self):
mmapi.SCENE_GRAPH_MODE_MM_SCENE_GRAPH,
)


def test_init_ceres_lmdif_maya_dag(self):
self.do_solve(
'ceres_lmdif',
Expand Down
1 change: 0 additions & 1 deletion tests/test/test_solver/test_lens3.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ def test_init_ceres_lmder(self):
"""
self.do_solve('ceres_lmder', mmapi.SOLVER_TYPE_CERES_LMDER)


def test_init_ceres_lmdif(self):
"""
Solve lens distortion on a single frame, using ceres.
Expand Down
2 changes: 1 addition & 1 deletion tests/test/test_solver/test_smoothness.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def do_solve(self, solver_name, solver_index):

def test_init_ceres_lmder(self):
self.do_solve('ceres_lmder', mmapi.SOLVER_TYPE_CERES_LMDER)

def test_init_ceres_lmdif(self):
self.do_solve('ceres_lmdif', mmapi.SOLVER_TYPE_CERES_LMDIF)

Expand Down

0 comments on commit 247b0e0

Please sign in to comment.