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

Fix octal umask handling in ctrl_pool

    Details

    • Templates:
    • Story Points:
      1
    • Epic Link:
    • Sprint:
      Alert Production S17 - 1
    • Team:
      Alert Production

      Description

      While reprocessing some hsc data, I received the error given below. This is because python3 does not implicitly convert integers with leading zeros into octal. We should make the ctrl_pool code use an explicit octal int for the umask defined at the top of parallel.py, and then use a better formatting string where necessary.

      SyntaxError: invalid token
        File "<string>", line 1
          import os; os.umask(002); import lsst.ctrl.pool.log; lsst.ctrl.pool.log.jobLog("singleFrame"); import lsst.pipe.drivers.singleFrameDriver; lsst.pipe.drivers.singleFrameDriver.SingleFrameDriverTask.parseAndRun();
                                ^
      SyntaxError: invalid token
      Tue Jan  3 12:38:28 PST 2017
      Done.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Parejkoj John Parejko
                Reporter:
                Parejkoj John Parejko
                Reviewers:
                Tim Jenness
                Watchers:
                Colin Slater, John Parejko, Simon Krughoff, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel