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

ChoiceField requires unicode strings

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: pex_config
    • Labels:
      None
    • Templates:
    • Story Points:
      0.2
    • Team:
      Architecture

      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

          Container Issues

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel