Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Aug 1, 2023
2 parents f865dd3 + b6a707d commit e75dd76
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 21 deletions.
13 changes: 7 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ endif(USE_GOOGLE_MAP)
if(USE_LEAFLET_MAP)
list(APPEND sources src/LeafletRadMap.cpp)
list(APPEND headers InterSpec/LeafletRadMap.h)
list(APPEND OTHER_InterSpec_SUPPORT_FILES InterSpec_resources/LeafletRadMap.js)
endif(USE_LEAFLET_MAP)

if(USE_SEARCH_MODE_3D_CHART)
Expand Down Expand Up @@ -568,7 +569,7 @@ deploy_js_resource("${CMAKE_CURRENT_SOURCE_DIR}/external_libs/SpecUtils/d3_resou



list( APPEND OTHER_SUPPORT_FILES ${CMAKE_CURRENT_SOURCE_DIR}/InterSpec_resources/D3TimeChart.js )
list( APPEND OTHER_InterSpec_SUPPORT_FILES ${CMAKE_CURRENT_SOURCE_DIR}/InterSpec_resources/D3TimeChart.js )

deploy_js_resource("${CMAKE_CURRENT_SOURCE_DIR}/external_libs/SpecUtils/d3_resources/SpectrumChartD3.js"
"${CMAKE_CURRENT_BINARY_DIR}/InterSpec_resources/SpectrumChartD3.js"
Expand Down Expand Up @@ -841,7 +842,7 @@ endif( WIN32 )
#endif()


list( APPEND OTHER_SUPPORT_FILES
list( APPEND OTHER_InterSpec_SUPPORT_FILES
${CMAKE_CURRENT_SOURCE_DIR}/README.md
${CMAKE_CURRENT_SOURCE_DIR}/data/default_preferences.xml
${CMAKE_CURRENT_SOURCE_DIR}/InterSpec_resources/themes/dark/dark.css
Expand All @@ -851,11 +852,11 @@ list( APPEND OTHER_SUPPORT_FILES

FILE(GLOB CSS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/InterSpec_resources/*.css )
list(FILTER CSS_FILES EXCLUDE REGEX ".*SpectrumChartD3.*css")
list(APPEND OTHER_SUPPORT_FILES ${CSS_FILES})
list(APPEND OTHER_InterSpec_SUPPORT_FILES ${CSS_FILES})

list(
APPEND
OTHER_SUPPORT_FILES
OTHER_InterSpec_SUPPORT_FILES
${CMAKE_CURRENT_SOURCE_DIR}/InterSpec_resources/DecayChainChart.js
${CMAKE_CURRENT_SOURCE_DIR}/InterSpec_resources/RelEffPlot.js
${CMAKE_CURRENT_SOURCE_DIR}/InterSpec_resources/DetectionLimitTool.js
Expand All @@ -864,12 +865,12 @@ list(
FILE(GLOB HELP_FILES ${CMAKE_CURRENT_SOURCE_DIR}/InterSpec_resources/static_text/*help.xml)
list(
APPEND
OTHER_SUPPORT_FILES
OTHER_InterSpec_SUPPORT_FILES
${HELP_FILES}
${CMAKE_CURRENT_SOURCE_DIR}/InterSpec_resources/static_text/help.json
)

add_custom_target(interspec_resources SOURCES ${OTHER_SUPPORT_FILES})
add_custom_target(interspec_resources SOURCES ${OTHER_InterSpec_SUPPORT_FILES})


#Copy files to the install directory
Expand Down
14 changes: 0 additions & 14 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
#include "InterSpec/BatchCommandLine.h"
#endif

#include "InterSpec/DetectionLimitCalc.h"

int main( int argc, char **argv )
{
#ifdef _WIN32
Expand All @@ -63,18 +61,6 @@ int main( int argc, char **argv )
return developcode::run_development_code();
#endif

/*
try
{
DetectionLimitCalc::batch_test();
std::cout << "Finished running batch_test()" << std::endl;
}catch( std::exception &e )
{
std::cerr << "Error running batch_test(): " << e.what() << std::endl;
}
return 1;
*/

std::cout << std::showbase << std::hex << "Running with Wt version "
<< WT_VERSION << std::dec << ", from executable compiled on "
<< __DATE__ << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/LeafletRadMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ std::string LeafletRadMap::createGeoLocationJson( const std::shared_ptr<const Sp
Wt::Json::Object sample_json;
if( !SpecUtils::is_special(meas_start_time) )
{
const auto duration = start_times_offset - meas_start_time;
const auto duration = meas_start_time - start_times_offset;
const auto millisecs = chrono::duration_cast<chrono::milliseconds>(duration);
sample_json["timeOffset"] = static_cast<long long int>( millisecs.count() );
}//if( SpecUtils::is_special(meas_start_time) )
Expand Down

0 comments on commit e75dd76

Please sign in to comment.