Skip to content

Commit a354b67

Browse files
committed
Fix handling of file epoch for static datums
1 parent 6900223 commit a354b67

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

dynadjust/dynadjust/dnaimportwrapper/dnaimportwrapper.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,10 +1148,13 @@ int ImportDataFiles(dna_import& parserDynaML, vdnaStnPtr* vStations, vdnaMsrPtr*
11481148
std::stringstream epochSource;
11491149
if (isStaticFrame)
11501150
{
1151-
epochSource << " - Warning: File epoch (" << inputFileEpoch << ") differs from project epoch (" << p.i.epoch << ")." << std::endl;
1152-
if (!p.g.quiet)
1153-
std::cout << epochSource.str();
1154-
*imp_file << epochSource.str();
1151+
if (!boost::iequals(p.i.epoch, inputFileEpoch))
1152+
{
1153+
epochSource << " - Warning: File epoch (" << inputFileEpoch
1154+
<< ") differs from project epoch (" << p.i.epoch << ")." << std::endl;
1155+
if (!p.g.quiet) std::cout << epochSource.str();
1156+
*imp_file << epochSource.str();
1157+
}
11551158
}
11561159
else
11571160
{

0 commit comments

Comments
 (0)