Unverified Commit 44f837b2 authored by Jesse Mapel's avatar Jesse Mapel Committed by GitHub
Browse files

Added indent and new line to state dumps (#347)

* Added indent to state dumps

* Missed one
parent 56bbb366
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -752,7 +752,7 @@ std::string UsgsAstroFrameSensorModel::getModelState() const {
       {m_referencePointXyz.x, m_referencePointXyz.y, m_referencePointXyz.z}},
      {"m_currentParameterCovariance", m_currentParameterCovariance}};

  std::string stateString = getModelName() + "\n" + state.dump();
  std::string stateString = getModelName() + "\n" + state.dump(2);
  return stateString;
}

+6 −6
Original line number Diff line number Diff line
@@ -437,7 +437,7 @@ std::string UsgsAstroLsSensorModel::getModelState() const {
  state["m_sunVelocity"] = m_sunVelocity;
  MESSAGE_LOG("num sun velocities: {} ", m_sunVelocity.size())

  std::string stateString = getModelName() + "\n" + state.dump();
  std::string stateString = getModelName() + "\n" + state.dump(2);
  return stateString;
}

@@ -470,7 +470,7 @@ void UsgsAstroLsSensorModel::applyTransformToState(ale::Rotation const& r, ale::
  // where the Sun is.

  // Update the state string
  stateString = getModelNameFromModelState(stateString) + "\n" + j.dump();
  stateString = getModelNameFromModelState(stateString) + "\n" + j.dump(2);
}
//***************************************************************************
// UsgsAstroLineScannerSensorModel::reset
+6 −6

File changed.

Contains only whitespace changes.