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

pybind11 bindings for DateTime are incorrect/incomplete

    XMLWordPrintable

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: daf_base
    • Labels:
      None

      Description

      The python bindings for DateTime are incomplete. Uncommenting any of the commented lines in the code block results in an error.

      In particular, the return values aren't mapped to python types (I personally care less about the ctor kwargs).

      import lsst.daf.base as dafBase
       
      dafBase.DateTime(2018, 2, 5, 13, 30, 0, dafBase.DateTime.UTC)
      #dafBase.DateTime(2018, 2, 5, 13, 30, 0, scale=dafBase.DateTime.UTC)
      #dafBase.DateTime(2018, 2, 5, 13, 30, 0, arg6=dafBase.DateTime.UTC)
       
      #d.gmtime(d.UTC)
      #d.timeval(d.TAI)
      

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              Assignee:
              Parejkoj John Parejko
              Reporter:
              rhl Robert Lupton
              Watchers:
              John Parejko, Robert Lupton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Jenkins

                  No builds found.