Commit d6689779 authored by jay's avatar jay
Browse files

updates for vector parameters in state

parent 8ab44e52
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -735,7 +735,6 @@ bool UsgsAstroFrameSensorModel::isValidIsd(const std::string& Isd, csm::WarningL
void UsgsAstroFrameSensorModel::replaceModelState(const std::string& stringState) {

    json state = json::parse(stringState);

    // The json library's .at() will except if key is missing
    try {
        m_modelName = state.at("m_modelName").get<std::string>();
@@ -960,6 +959,7 @@ std::string UsgsAstroFrameSensorModel::constructStateFromIsd(const std::string&
      std::cerr << "Focal To Pixel Transformation Parsed!" << std::endl;

      state["m_referencePointXyz"] = std::vector<double>(3, 0.0);
      state["m_currentParameterCovariance"] = std::vector<double>(NUM_PARAMETERS*NUM_PARAMETERS,0.0)
      state["m_collectionIdentifier"] = ""; 

      std::cerr << "Constants Set!" << std::endl;