Skip to content

Commit

Permalink
updated hardcoded strings to use private variables
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufjimoh committed Dec 4, 2024
1 parent 5b27d2e commit 4b77f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Framework/Algorithms/test/PolarizationEfficiencyCorTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ class PolarizationEfficiencyCorTest : public CxxTest::TestSuite {
MatrixWorkspace_sptr createEfficiencies(std::string const &kind) {
static std::map<std::string, std::vector<std::string>> const labels = {{"Wildes", {"P1", "P2", "F1", "F2"}},
{"Fredrikze", {"Pp", "Ap", "Rho", "Alpha"}}};
if (kind == "Wildes" || kind == "Fredrikze") {
if (kind == WILDES_METHOD || kind == FREDRIKZE_METHOD) {
auto inWS = createWorkspaces(1)[0];
MatrixWorkspace_sptr ws = WorkspaceFactory::Instance().create(inWS, 4);
ws->getAxis(0)->setUnit("Wavelength");
Expand Down

0 comments on commit 4b77f47

Please sign in to comment.