Skip to content

Commit

Permalink
Update apollopaninit call
Browse files Browse the repository at this point in the history
  • Loading branch information
chkim-usgs committed Jan 28, 2025
1 parent e5f80b3 commit c0e6ad4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ dependencies:
- qhull
- qt-main>=5.15.8, <5.16
- qwt <6.3.0
- spiceql =1.0.1
# - spiceql
- sqlite >=3.46.0,<3.47
- suitesparse <7.7.0
- superlu
Expand Down
3 changes: 2 additions & 1 deletion isis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ find_package(Jama 125 REQUIRED)
find_package(NN REQUIRED)
find_package(OpenCV 3.1.0 REQUIRED)
find_package(PCL REQUIRED)
find_package(Protobuf REQUIRED)
find_package(Protobuf REQUIRED CONFIG)
find_package(Qwt 6 REQUIRED)
find_package(SuperLU 4.3 REQUIRED)
find_package(SpiceQL REQUIRED)
Expand All @@ -295,6 +295,7 @@ find_package(inja REQUIRED)
if(buildTests)
set(INSTALL_GTEST OFF)
add_subdirectory(../gtest gtest)
add_subdirectory(../gmock-global gmock-global)
else()
set(SENSOR_UTILITIES_BUILD_TESTS OFF CACHE BOOL "Disable SensorUtilities Tests")
endif()
Expand Down
4 changes: 2 additions & 2 deletions isis/src/apollo/apps/apollopaninit/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void IsisMain() {
std::string frameName;
SpiceInt frameCode = 0;
try{
json output = Isis::RestfulSpice::getTargetFrameInfo(301, "base");
json output = Isis::RestfulSpice::getTargetFrameInfo(301, mission.toLower().toStdString());
frameCode = output["frameCode"].get<SpiceInt>();
frameName = output["frameName"].get<std::string>();
}catch(std::invalid_argument){
Expand All @@ -251,7 +251,7 @@ void IsisMain() {
throw IException(IException::Io, msg, _FILEINFO_);
}
}


spRot = new SpiceRotation(frameCode);
//create a table from starttime to endtime (streched by 3%) with NODES entries
Expand Down
2 changes: 1 addition & 1 deletion isis/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ add_executable(runISISTests
IsisTestMain.cpp
${test_source})

target_link_libraries(runISISTests isis ${MISSION_LIBS} ${ALLLIBS} gmock_main)
target_link_libraries(runISISTests isis ${MISSION_LIBS} ${ALLLIBS} gmock-global::gmock-global gmock_main)

gtest_discover_tests(runISISTests WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tests PROPERTIES DISCOVERY_TIMEOUT 6000)

0 comments on commit c0e6ad4

Please sign in to comment.