Skip to content

Commit 49026ba

Browse files
committed
Merge branch 'master' of https://github.com/sandialabs/InterSpec
2 parents 4b03f4c + 3e369f1 commit 49026ba

20 files changed

+61
-41
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ target/android/InterSpec/app/universal
1414
target/android/InterSpec/app/x86*
1515
target/android/InterSpec/app/
1616
target/android/InterSpec/app/build
17+
target/electron/node_modules
18+
target/electron/release-builds
1719

1820
*OUO*
1921
.svn
@@ -24,6 +26,7 @@ target/android/InterSpec/app/build
2426
.project
2527
.svnignore
2628
.bin
29+
.vs
2730
WtsRsrcs
2831
XcodeFiles
2932
build

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# excpet iOS, Android, and Electron, InterSpecExe
33

44
cmake_policy(SET CMP0048 NEW)
5-
project(InterSpec VERSION 1.0.6)
5+
project(InterSpec VERSION 1.0.7)
66

77
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
88
set(CMAKE_COLOR_MAKEFILE ON CACHE BOOL "Color" FORCE)
@@ -1112,8 +1112,8 @@ else()
11121112
#set_target_properties( InterSpecExe PROPERTIES SUFFIX "")
11131113
set_target_properties(InterSpecExe PROPERTIES OUTPUT_NAME "InterSpec")
11141114

1115-
add_executable(peakFitTimingDev testing/peakFitTimingDev.cpp)
1116-
target_link_libraries(peakFitTimingDev PUBLIC InterSpecLib)
1115+
# add_executable(peakFitTimingDev testing/peakFitTimingDev.cpp)
1116+
# target_link_libraries(peakFitTimingDev PUBLIC InterSpecLib)
11171117
endif(IOS)
11181118

11191119
set_target_properties(InterSpecLib PROPERTIES PREFIX "")

InterSpec/D3SpectrumDisplayDiv.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ class D3SpectrumDisplayDiv : public Wt::WContainerWidget
170170
const std::string yAxisTitle() const;
171171

172172

173-
float xUnitsPerPixel() const;
174-
175173
void enableLegend( const bool forceMobileStyle );
176174
void disableLegend();
177175
bool legendIsEnabled() const;

InterSpec/InterSpec.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -916,9 +916,6 @@ class InterSpec : public Wt::WContainerWidget
916916
// The InterSpec pointer is actually only necessary for the
917917
// DetectorPeakResponse.
918918
void guessIsotopesForPeaks( Wt::WApplication *app );
919-
920-
//kevPerPixel(): Returns the approximated keV that 1 px covers.
921-
float kevPerPixel() const;
922919

923920
bool isSupportFile() const;
924921

InterSpec_resources/FeatureMarkerWidget.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@
33
}
44

55
.FeatureMarkerWidget {
6-
width: 9em;
6+
width: 9.2em;
77
padding-bottom: 6px;
88
}
99

10+
.FeatureMarkerWidget .AngleRow {
11+
white-space: nowrap;
12+
}
13+
14+
.FeatureMarkerWidget .AngleInput {
15+
width: 2.1em;
16+
}
17+
1018
.FeatureMarkerWidget > label {
1119
padding-top: 6px;
1220
}

main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ Wt::WApplication *createApplication( const Wt::WEnvironment &env )
118118
#include <stdio.h>
119119
#include <shellapi.h>
120120

121+
#include "SpecUtils/StringAlgo.h"
122+
121123
/** Get command line arguments encoded as UTF-8.
122124
This function just leaks the memory
123125

src/D3SpectrumDisplayDiv.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,12 +1060,6 @@ void D3SpectrumDisplayDiv::setYAxisTitle( const std::string &title )
10601060
}//void setYAxisTitle( const std::string &title )
10611061

10621062

1063-
float D3SpectrumDisplayDiv::xUnitsPerPixel() const
1064-
{
1065-
//Christian: We use 0.001 as a placeholder since we don't have reference to SpectrumChart anymore
1066-
return 0.001;
1067-
}
1068-
10691063

10701064
Wt::Signal<double,double> &D3SpectrumDisplayDiv::xRangeChanged()
10711065
{
@@ -2019,7 +2013,8 @@ void D3SpectrumDisplayDiv::chartFitRoiDragCallback( double lower_energy, double
20192013
m_peakModel->removePeak( p );
20202014
}catch(std::exception &e)
20212015
{
2022-
cerr << "Unexpected error removing peaks - must not be a valid peak any more..." << endl;
2016+
cerr << "Unexpected error removing peaks - must not be a valid peak any more...: "
2017+
<< e.what() << endl;
20232018
}
20242019
}//for( const auto &p : added_peaks )
20252020

src/DoseCalcWidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ void DoseCalcWidget::runtime_sanity_checks()
12541254
expected = 25.19E-6 * PhysicalUnits::rem/PhysicalUnits::hour; //Other program gives 23.9 uRem/h
12551255
check_nuc( nuclide, age, distance, areal_density, atomic_number, expected );
12561256

1257-
areal_density = 50.0f * PhysicalUnits::gram / PhysicalUnits::cm2;
1257+
areal_density = 50.0f * static_cast<float>(PhysicalUnits::gram / PhysicalUnits::cm2);
12581258
expected = 2.59E-6 * PhysicalUnits::rem/PhysicalUnits::hour; //Other program gives 0.842 uRem/h
12591259
check_nuc( nuclide, age, distance, areal_density, atomic_number, expected );
12601260

@@ -1267,7 +1267,7 @@ void DoseCalcWidget::runtime_sanity_checks()
12671267
expected = 1.86E-6 * PhysicalUnits::rem/PhysicalUnits::hour; //Other program gives 1.8 uRem/h
12681268
check_nuc( nuclide, age, distance, areal_density, atomic_number, expected );
12691269

1270-
areal_density = 2.0f * PhysicalUnits::gram / PhysicalUnits::cm2;
1270+
areal_density = 2.0f * static_cast<float>(PhysicalUnits::gram / PhysicalUnits::cm2);
12711271
expected = 2.34E-6 * PhysicalUnits::rem/PhysicalUnits::hour; //Other program gives 0.78 uRem/h
12721272
check_nuc( nuclide, age, distance, areal_density, atomic_number, expected );
12731273

src/EnergyCalGraphical.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ void EnergyCalGraphicalConfirm::apply()
384384
assert( 0 );
385385
break;
386386
}//switch( energycal->type() )
387-
}catch( std::exception &e )
387+
}catch( std::exception & )
388388
{
389389
string msg;
390390
msg = "The coeffiecients {";

src/EnergyCalMultiFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ void EnergyCalMultiFileModel::refreshData()
881881
try
882882
{
883883
cal = spec->suggested_sum_energy_calibration( samplnums, gammaDetNames );
884-
}catch( std::exception &e )
884+
}catch( std::exception & )
885885
{
886886
#if( PERFORM_DEVELOPER_CHECKS )
887887
log_developer_error( __func__, "Unexpected failure of suggested_sum_energy_calibration" );

0 commit comments

Comments
 (0)