Uploaded image for project: 'The Virtual Brain'
  1. The Virtual Brain
  2. TVB-2079

Traits system refuses NumPy scalar dtypes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      The traits system should not raise errors such as

      AttributeError: expected type <class 'tvb.basic.traits.types_basic.Float'>, received type <type 'numpy.float64'>

      The numpy function can_cast should be used to know whether a cast is safe or not

      http://docs.scipy.org/doc/numpy-1.10.0/reference/generated/numpy.can_cast.html

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              marmaduke.woodman Marmaduke Woodman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: