Skip to content

Commit 883cf8c

Browse files
author
Arthur Glowacki
committed
Added override loading for polarity pattern
1 parent ac14b0c commit 883cf8c

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/io/file/aps/aps_fit_params_import.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,16 @@ DLL_EXPORT bool load_parameters_override(std::string path, Params_Override<T_rea
820820

821821
params_override->scaling_factors[scaler_name] = factor;
822822
}
823+
else if (tag == STR_POLARITY_PATTERN)
824+
{
825+
std::string value;
826+
std::getline(strstream, value);
827+
value.erase(std::remove(value.begin(), value.end(), '\n'), value.end());
828+
value.erase(std::remove(value.begin(), value.end(), '\r'), value.end());
829+
value.erase(std::remove(value.begin(), value.end(), ' '), value.end());
830+
params_override->polarity_pattern = value;
831+
}
832+
823833
}
824834
catch (std::exception& e)
825835
{

0 commit comments

Comments
 (0)