Uploaded image for project: 'Instrument control development'
  1. Instrument control development
  2. INSTRM-1891

axis limit error causes crash

    XMLWordPrintable

    Details

      Description

      I think this was triggered by my turning off an axis which had no enabled traces.

      /software/mhs/products/Linux64/ics_sps_engineering_plotData/1.3.4/python/sps_engineering_plotData/graph.py:212: RuntimeWarning: invalid value encountered in log10
        dmin = 1.0 * 10 ** (np.floor(np.log10(dmin)))
      Traceback (most recent call last):
        File "/software/mhs/products/Linux64/ics_sps_engineering_plotData/1.3.4/python/sps_engineering_plotData/tab.py", line 99, in getData
          self.plotWindow.graph.updatePlot(timing)
        File "/software/mhs/products/Linux64/ics_sps_engineering_plotData/1.3.4/python/sps_engineering_plotData/graph.py", line 232, in updatePlot
          needDraw = self.updateLimits(axes, tmax, scaleY=(not self.isPanned))
        File "/software/mhs/products/Linux64/ics_sps_engineering_plotData/1.3.4/python/sps_engineering_plotData/graph.py", line 265, in updateLimits
          ax.set_ylim(self.calc_lim(newMin, newMax, logy=logy))
        File "/software/conda/envs/rubin3_ics/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 4027, in set_ylim
          bottom = self._validate_converted_limits(bottom, self.convert_yunits)
        File "/software/conda/envs/rubin3_ics/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 3614, in _validate_converted_limits
          raise ValueError("Axis limits cannot be NaN or Inf")
      ValueError: Axis limits cannot be NaN or Inf
      /software/mhs/products/Linux64/ics_sps_engineering_plotData/1.3.4/bin/plotdata: line 1: 17496 Aborted                 python -m sps_engineering_plotData.main "$@"
      

        Attachments

          Activity

            People

            • Assignee:
              arnaud.lefur arnaud.lefur
              Reporter:
              cloomis cloomis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: