Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-7337

ChoiceField requires unicode strings

    XMLWordPrintable

Details

    • Bug
    • Status: Done
    • Resolution: Done
    • None
    • pex_config
    • None

    Description

      lsst.pex.config.ChoiceField fails in Python 2 with:

      ValueError: ChoiceField's allowed choice variance is of incorrect type str. Expected future.types.newstr.newstr
      

      if created using normal strings for the choices or default. I saw this in noiseReplacer.py when converting meas_base to be Python 3 compatible.

      Attachments

        Issue Links

          Activity

            People

              tjenness Tim Jenness
              rowen Russell Owen
              Russell Owen
              Russell Owen, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Jenkins

                  No builds found.