Commit 397d8b8dc854ad5b3c73db9acdd328460f705cbe
1 parent
9b9e2c69
Exists in
master
and in
100 other branches
Fix #5393 - Detect fill values in plot
Showing
1 changed file
with
13 additions
and
9 deletions
Show diff stats
src/ParamOutputImpl/Plot/PlotOutput.cc
... | ... | @@ -99,6 +99,10 @@ void PlotOutput::getDataFromServer() |
99 | 99 | throw; |
100 | 100 | } |
101 | 101 | } |
102 | + | |
103 | + for (std::map<std::string, ParameterData>::iterator it = _parameterValues.begin(); it != _parameterValues.end(); ++it) { | |
104 | + std::cout << it->first << " - " << it->second.getSize() << std::endl; | |
105 | + } | |
102 | 106 | } |
103 | 107 | |
104 | 108 | /** |
... | ... | @@ -663,7 +667,7 @@ void PlotOutput::visit( |
663 | 667 | { |
664 | 668 | crtParameterData.addValue( |
665 | 669 | pParamData->getTime(index), |
666 | - pParamData->get(index), | |
670 | + isNAN(pParamData->get(index)) ? NAN: pParamData->get(index), | |
667 | 671 | pParamData->getMinSampling(), |
668 | 672 | gapDetected, componentIndex); |
669 | 673 | } |
... | ... | @@ -690,7 +694,7 @@ void PlotOutput::visit( |
690 | 694 | + _paramDataIndexInfo._startIndex; ++index) { |
691 | 695 | crtParameterData.addValue( |
692 | 696 | pParamData->getTime(index), |
693 | - pParamData->get(index), | |
697 | + isNAN(pParamData->get(index)) ? NAN: pParamData->get(index), | |
694 | 698 | pParamData->getMinSampling(), |
695 | 699 | gapDetected, componentIndex); |
696 | 700 | } |
... | ... | @@ -717,7 +721,7 @@ void PlotOutput::visit( |
717 | 721 | + _paramDataIndexInfo._startIndex; ++index) { |
718 | 722 | crtParameterData.addValue( |
719 | 723 | pParamData->getTime(index), |
720 | - pParamData->get(index), | |
724 | + isNAN(pParamData->get(index)) ? NAN: pParamData->get(index), | |
721 | 725 | pParamData->getMinSampling(), |
722 | 726 | gapDetected, componentIndex); |
723 | 727 | } |
... | ... | @@ -813,7 +817,7 @@ void PlotOutput::visit( |
813 | 817 | double time = pParamData->getTime(i); |
814 | 818 | for (auto& index : crtParameterData._indexes) { |
815 | 819 | crtParameterData.addValue(time, |
816 | - pParamData->get(i)[index.getDim1Index()], | |
820 | + isNAN(pParamData->get(i)[index.getDim1Index()]) ? NAN: pParamData->get(i)[index.getDim1Index()], | |
817 | 821 | pParamData->getMinSampling(), |
818 | 822 | gapDetected, index); |
819 | 823 | } |
... | ... | @@ -845,7 +849,7 @@ void PlotOutput::visit( |
845 | 849 | double time = pParamData->getTime(i); |
846 | 850 | for (auto& index : crtParameterData._indexes) { |
847 | 851 | crtParameterData.addValue(time, |
848 | - pParamData->get(i)[index.getDim1Index()], | |
852 | + isNAN(pParamData->get(i)[index.getDim1Index()]) ? NAN: pParamData->get(i)[index.getDim1Index()], | |
849 | 853 | pParamData->getMinSampling(), |
850 | 854 | gapDetected, index); |
851 | 855 | } |
... | ... | @@ -877,7 +881,7 @@ void PlotOutput::visit( |
877 | 881 | double time = pParamData->getTime(i); |
878 | 882 | for (auto& index : crtParameterData._indexes) { |
879 | 883 | crtParameterData.addValue(time, |
880 | - pParamData->get(i)[index.getDim1Index()], | |
884 | + isNAN(pParamData->get(i)[index.getDim1Index()]) ? NAN: pParamData->get(i)[index.getDim1Index()], | |
881 | 885 | pParamData->getMinSampling(), |
882 | 886 | gapDetected, index); |
883 | 887 | } |
... | ... | @@ -977,7 +981,7 @@ void PlotOutput::visit(AMDA::Parameters::ParamDataTab2DFloat *pParamData) { |
977 | 981 | double time = pParamData->getTime(i); |
978 | 982 | for (auto& index : crtParameterData._indexes) { |
979 | 983 | crtParameterData.addValue(time, |
980 | - pParamData->get(i)[index.getDim1Index()][index.getDim2Index()], | |
984 | + isNAN(pParamData->get(i)[index.getDim1Index()][index.getDim2Index()]) ? NAN: pParamData->get(i)[index.getDim1Index()][index.getDim2Index()], | |
981 | 985 | pParamData->getMinSampling(), |
982 | 986 | gapDetected, index); |
983 | 987 | } |
... | ... | @@ -1008,7 +1012,7 @@ void PlotOutput::visit(AMDA::Parameters::ParamDataTab2DDouble *pParamData) { |
1008 | 1012 | double time = pParamData->getTime(i); |
1009 | 1013 | for (auto& index : crtParameterData._indexes) { |
1010 | 1014 | crtParameterData.addValue(time, |
1011 | - pParamData->get(i)[index.getDim1Index()][index.getDim2Index()], | |
1015 | + isNAN(pParamData->get(i)[index.getDim1Index()][index.getDim2Index()]) ? NAN: pParamData->get(i)[index.getDim1Index()][index.getDim2Index()], | |
1012 | 1016 | pParamData->getMinSampling(), |
1013 | 1017 | gapDetected, index); |
1014 | 1018 | } |
... | ... | @@ -1039,7 +1043,7 @@ void PlotOutput::visit(AMDA::Parameters::ParamDataTab2DLongDouble *pParamData) { |
1039 | 1043 | double time = pParamData->getTime(i); |
1040 | 1044 | for (auto& index : crtParameterData._indexes) { |
1041 | 1045 | crtParameterData.addValue(time, |
1042 | - pParamData->get(i)[index.getDim1Index()][index.getDim2Index()], | |
1046 | + isNAN(pParamData->get(i)[index.getDim1Index()][index.getDim2Index()]) ? NAN: pParamData->get(i)[index.getDim1Index()][index.getDim2Index()], | |
1043 | 1047 | pParamData->getMinSampling(), |
1044 | 1048 | gapDetected, index); |
1045 | 1049 | } | ... | ... |