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

Importing Surface from Default_Project fails on Windows machines

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.01
    • Component/s: None
    • Labels:
      None
    • Epic Link:
    • Sprint:
      VBC REST API 2
    • TVB-C Task:
      8.2 Pipeline Integration

      Description

      Surface.triangles array is defined with dtype=int. This is converted later to a numpy type using the numpy.dtype() function. It results in int64 on Mac, but int32 on Windows.

      This bug happens after reading triangles from H5 (the array has dtype=int64) when trying to assign it on the datatype attribute which dtype is set at int32.

      We use there a condition that checks compatibility of dtypes with numpy.can_cast().

      On Mac the default dtype is set to int64, thus I didn't encounter this issue.

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              paula.popa Paula Popa
              Reporter:
              paula.popa Paula Popa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours, 30 minutes Time Not Required
                  3h 30m