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

Fix ndarray type casters to work with nullptr (i.e. None) arguments

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ndarray
    • Labels:
      None
    • Templates:
    • Story Points:
      2
    • Sprint:
      DRP F17-1
    • Team:
      Data Release Production

      Description

      In contrast to the regular pybind11 type casters the ndarray ones don't work well with nullptr.
      E.g. the function void testOptionalArray(ndarray::Array<double, 1, 1> * arr = nullptr) should accept None as a default argument, but it does not.

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                pschella Pim Schellart [X] (Inactive)
                Reporter:
                pschella Pim Schellart [X] (Inactive)
                Reviewers:
                Jim Bosch
                Watchers:
                Jim Bosch, Pim Schellart [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel