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

duplicate imports in CharacterizeImageTask

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: pipe_tasks
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Alert Production F16 - 9, Alert Production F16 - 10, Alert Production F16 - 11, Alert Production F16 - 11b, Alert Production F16 - 11c
    • Team:
      Alert Production

      Description

      A few duplicate imports snuck into CharacterizeImageTask in a recent change.

      It's a one-liner to fix. However, pep8 also picked up the fact that lines 565-569 are indented too far. Might as well fix that as well and run flake8 on all python code.

        Attachments

          Activity

          No builds found.
          rowen Russell Owen created issue -
          rowen Russell Owen made changes -
          Field Original Value New Value
          Watchers Russell Owen [ Russell Owen ] Nate Lust, Russell Owen [ Nate Lust, Russell Owen ]
          rowen Russell Owen made changes -
          Assignee Russell Owen [ rowen ] Fred Moolekamp [ fred3m ]
          Hide
          rowen Russell Owen added a comment -

          Fred Moolekamp I'm hoping you can fix this as part of your Python 3 update to pipe_tasks (I see you listed as working on that now). If not, feel free to assign it back to me.

          Show
          rowen Russell Owen added a comment - Fred Moolekamp I'm hoping you can fix this as part of your Python 3 update to pipe_tasks (I see you listed as working on that now). If not, feel free to assign it back to me.
          Hide
          fred3m Fred Moolekamp added a comment -

          Russell Owen, I'm involved in a few other projects so I think that Meredith Rawls is working on the pipe_tasks python 3 port now. I think I forgot to update the confluence page.

          Show
          fred3m Fred Moolekamp added a comment - Russell Owen , I'm involved in a few other projects so I think that Meredith Rawls is working on the pipe_tasks python 3 port now. I think I forgot to update the confluence page.
          mrawls Meredith Rawls made changes -
          Assignee Fred Moolekamp [ fred3m ] Meredith Rawls [ mrawls ]
          mrawls Meredith Rawls made changes -
          Sprint Alert Production F16 - 9 [ 247 ]
          Team Alert Production [ 10300 ]
          Hide
          mrawls Meredith Rawls added a comment -

          Got it. If we're being picky, which I gather we are, the multi-line keyword assignment in characterizeImage.py is not currently following our whitespace conventions from the style guide. I'm also not entirely sold on the idea that multi-line keyword assignments need to be quite as prolific as they are here. Input welcome.

          Show
          mrawls Meredith Rawls added a comment - Got it. If we're being picky, which I gather we are, the multi-line keyword assignment in characterizeImage.py is not currently following our whitespace conventions from the style guide . I'm also not entirely sold on the idea that multi-line keyword assignments need to be quite as prolific as they are here. Input welcome.
          mrawls Meredith Rawls made changes -
          Status To Do [ 10001 ] In Progress [ 3 ]
          Hide
          rowen Russell Owen added a comment -

          Can you please be more specific about what isn't following our style guide? I thought the code was clean.

          Show
          rowen Russell Owen added a comment - Can you please be more specific about what isn't following our style guide? I thought the code was clean.
          Hide
          mrawls Meredith Rawls added a comment -

          Specifically, the statement/section "Keyword assignment operators SHOULD be surrounded by a space when statements appear on multiple lines." The style guide suggests only omitting these spaces when the keyword assignments are listed on a single line.

          Show
          mrawls Meredith Rawls added a comment - Specifically, the statement/section "Keyword assignment operators SHOULD be surrounded by a space when statements appear on multiple lines." The style guide suggests only omitting these spaces when the keyword assignments are listed on a single line.
          Hide
          rowen Russell Owen added a comment -

          Yes that is worth fixing if you're willing to do it. (You probably already know this, but please don't add spaces when a default value is being specified; for some reason we forbid that in Python and C++).

          Show
          rowen Russell Owen added a comment - Yes that is worth fixing if you're willing to do it. (You probably already know this, but please don't add spaces when a default value is being specified; for some reason we forbid that in Python and C++).
          mrawls Meredith Rawls made changes -
          Story Points 1
          krughoff Simon Krughoff made changes -
          Sprint Alert Production F16 - 9 [ 247 ] Alert Production F16 - 9, Alert Production F16 - 10 [ 247, 284 ]
          krughoff Simon Krughoff made changes -
          Rank Ranked higher
          mrawls Meredith Rawls made changes -
          Epic Link DM-6179 [ 24693 ]
          mrawls Meredith Rawls made changes -
          Epic Link DM-6179 [ 24693 ]
          mrawls Meredith Rawls made changes -
          Epic Link DM-7362 [ 26448 ]
          Hide
          mrawls Meredith Rawls added a comment -

          This was done in parallel with DM-7292.

          Show
          mrawls Meredith Rawls added a comment - This was done in parallel with DM-7292 .
          mrawls Meredith Rawls made changes -
          Reviewers Nate Lust [ nlust ]
          Status In Progress [ 3 ] In Review [ 10004 ]
          nlust Nate Lust made changes -
          Status In Review [ 10004 ] Reviewed [ 10101 ]
          krughoff Simon Krughoff made changes -
          Sprint Alert Production F16 - 9, Alert Production F16 - 10 [ 247, 284 ] Alert Production F16 - 9, Alert Production F16 - 10, Alert Production F16 - 11 [ 247, 284, 289 ]
          krughoff Simon Krughoff made changes -
          Sprint Alert Production F16 - 9, Alert Production F16 - 10, Alert Production F16 - 11 [ 247, 284, 289 ] Alert Production F16 - 9, Alert Production F16 - 10, Alert Production F16 - 11, Alert Production F16 - 11b [ 247, 284, 289, 295 ]
          krughoff Simon Krughoff made changes -
          Rank Ranked higher
          krughoff Simon Krughoff made changes -
          Sprint Alert Production F16 - 9, Alert Production F16 - 10, Alert Production F16 - 11, Alert Production F16 - 11b [ 247, 284, 289, 295 ] Alert Production F16 - 9, Alert Production F16 - 10, Alert Production F16 - 11, Alert Production F16 - 11b, Alert Production F16 - 11c [ 247, 284, 289, 295, 296 ]
          Hide
          mrawls Meredith Rawls added a comment -

          Completed as part of DM-7292.

          Show
          mrawls Meredith Rawls added a comment - Completed as part of DM-7292 .
          mrawls Meredith Rawls made changes -
          Resolution Done [ 10000 ]
          Status Reviewed [ 10101 ] Done [ 10002 ]

            People

            Assignee:
            mrawls Meredith Rawls
            Reporter:
            rowen Russell Owen
            Reviewers:
            Nate Lust
            Watchers:
            Fred Moolekamp, Meredith Rawls, Nate Lust, Russell Owen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.