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

Catch date format exception in plotdata

    XMLWordPrintable

    Details

    • Story Points:
      1
    • Sprint:
      EngRun17May_June

      Description

      I think the user was setting a date range for an existing plot in the Calendar, but:

        ax.set_ylim(ymin, ymax)
      Traceback (most recent call last):
        File "/software/mhs/products/Linux64/ics_sps_engineering_plotData/1.3.12/python/sps_engineering_plotData/pcalendar.py", line 195, in updateMinDate
          startdate = str2date(self.dateStr.text())
        File "/software/mhs/products/Linux64/ics_sps_engineering_Lib_dataQuery/1.2.7/python/sps_engineering_Lib_dataQuery/dates.py", line 17, in str2date
          return dt.datetime.strptime(datestr, fmt)
        File "/software/conda/envs/rubin3_ics/lib/python3.8/_strptime.py", line 568, in _strptime_datetime
          tt, fraction, gmtoff_fraction = _strptime(data_string, format)
        File "/software/conda/envs/rubin3_ics/lib/python3.8/_strptime.py", line 349, in _strptime
          raise ValueError("time data %r does not match format %r" %
      ValueError: time data '2024-05-130T00:00' does not match format '%Y-%m-%d0%H:%M:%S.%f'
      /software/mhs/products/Linux64/ics_sps_engineering_plotData/1.3.12/bin/plotdata: line 1: 759765 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: