Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-5317

Python interface LHS parameters cannot be object parameters

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: R2015a, R2016a, R2017a, R2018A
    • Fix Version/s: NearTermBackLog
    • Component/s: Python
    • Labels:
      None

      Description

      The following line fails to execute in the Python interface:

      [sc2.UTCGregorian] = Python.Python_IO_String.Python_IO_String(sc1.UTCGregorian);
      

      throwing this exception:

      Command Exception:    CallPythonFunction command cannot find Parameter sc2.UTCGregorian in script line
         "
      GMAT [sc2.UTCGregorian] = Python.Python_IO_String.Python_IO_String(sc1.UTCGregorian);"
      

      This workaroud does run correctly:

      GMAT [x] = Python.Python_IO_String.Python_IO_String(sc1.UTCGregorian);
      sc2.UTCGregorian = x
      

      This is one of those P1.5 bugs to me, so I need someone else to make the fix/don't fix call.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: