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

Extraneous lines are written to object dump file

    Details

      Description

      The attached script writes extraneous lines (including commented-out code) to the object file when using a Write command at the end of the run.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            sslojkowski Steven Slojkowski added a comment -

            If you think there is a workaround to mitigate this issue, you can remove the ReleaseBlocker tag.

            Show
            sslojkowski Steven Slojkowski added a comment - If you think there is a workaround to mitigate this issue, you can remove the ReleaseBlocker tag.
            Hide
            shughes Steven Hughes added a comment -

            We are missing the file loaded via the include command.

            Show
            shughes Steven Hughes added a comment - We are missing the file loaded via the include command.
            Hide
            shughes Steven Hughes added a comment -

            The EstSat.txt is on ticket GMT-5756.

            This script writes out an #Include that is incorrect'

            
            #Include 'C:\temp\EstSat.txt';
            
            EstSat.DryMass          = 867.1111;
            EstSat.Cd               = 1.111111;
            
            Create ReportFile ElementReport;
            
            ElementReport.Filename     = 'EstSatNew4.txt';
            ElementReport.WriteHeaders = False;
            
            BeginMissionSequence
            
            % Pretend estimation occurs here:
            
            EstSat.X = 100000
            
            Write EstSat { ReportFile = ElementReport,  Style = Script };
            
            % Write EstSat {LogFile = True, Style = Script};
            
            

            The output file will NOT use X = 100000 due to the include file written in the .

            In short, we think Write command should NOT write out an include.

            Show
            shughes Steven Hughes added a comment - The EstSat.txt is on ticket GMT-5756 . This script writes out an #Include that is incorrect' #Include 'C:\temp\EstSat.txt'; EstSat.DryMass = 867.1111; EstSat.Cd = 1.111111; Create ReportFile ElementReport; ElementReport.Filename = 'EstSatNew4.txt'; ElementReport.WriteHeaders = False; BeginMissionSequence % Pretend estimation occurs here: EstSat.X = 100000 Write EstSat { ReportFile = ElementReport, Style = Script }; % Write EstSat {LogFile = True, Style = Script}; The output file will NOT use X = 100000 due to the include file written in the . In short, we think Write command should NOT write out an include.
            Hide
            shughes Steven Hughes added a comment -

            Note this bug above only occurs if you Write an object that was modified by an Include.

            Show
            shughes Steven Hughes added a comment - Note this bug above only occurs if you Write an object that was modified by an Include.
            Hide
            shughes Steven Hughes added a comment -

            Desired behavior: don't write comments or include to objects written from Write command.

            Show
            shughes Steven Hughes added a comment - Desired behavior: don't write comments or include to objects written from Write command.
            Hide
            tgrubb Thomas Grubb added a comment -

            Should be in 2016-08-22 build

            Show
            tgrubb Thomas Grubb added a comment - Should be in 2016-08-22 build
            Hide
            dcooley Steve Cooley added a comment -

            passed ticket to SES for testing.

            Show
            dcooley Steve Cooley added a comment - passed ticket to SES for testing.
            Hide
            sslojkowski Steven Slojkowski added a comment -

            Verified fixed in 8/22/2016 build.

            Show
            sslojkowski Steven Slojkowski added a comment - Verified fixed in 8/22/2016 build.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: