Skip to content
Snippets Groups Projects
Commit 0d9fc048 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

fix getActiveParameterCount giving incorrect result

parent 6648db57
No related branches found
No related tags found
No related merge requests found
...@@ -270,8 +270,8 @@ size_t Model::setParamSweepCountClosestTotal(size_t totalCount) ...@@ -270,8 +270,8 @@ size_t Model::setParamSweepCountClosestTotal(size_t totalCount)
{ {
for(eis::Range& range : componant->getParamRanges()) for(eis::Range& range : componant->getParamRanges())
{ {
if(range.step > 1) if(range.count > 1)
range.step = countPerParam; range.count = countPerParam;
} }
} }
return std::pow(countPerParam, activeParams); return std::pow(countPerParam, activeParams);
...@@ -292,7 +292,7 @@ size_t Model::getActiveParameterCount() ...@@ -292,7 +292,7 @@ size_t Model::getActiveParameterCount()
{ {
for(const eis::Range& range : componant->getParamRanges()) for(const eis::Range& range : componant->getParamRanges())
{ {
if(range.step > 1) if(range.count > 1)
++count; ++count;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment