Skip to content
Snippets Groups Projects

Fix/Unused Variables

Merged Robert Rosca requested to merge fix/unused-variables into master
All threads resolved!

Going through some of the warnings my IDE is throwing up so I'll probably end up doing a couple of these tiny pull requests.

  • cal_tools/cal_tools/agipdlib.py: corr_bools={} setting keyword arguments to mutables isn't a great idea since the state can persist across function calls, maybe in this case that was the intention but it usually isn't. Changed it to None and then set it to a dict if no argument is given.
  • cal_tools/cal_tools/lpdlib.py: self.cnl = True was set, but it looks like that should have taken its value from the correct_non_linear argument, set it to that.
  • cal_tools/cal_tools/metrology.py an offset is defined but never applied to the coordinates. Similar code appears throughout the file so I just did the same thing there as well, think it should be correct.

@danilevc I noticed, and remember you mentioning, that there's a template used for merge requests, but can't remember where to find it. Can you point me to it and then I'll update this text to fit the template?

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Robert Rosca resolved all discussions

    resolved all discussions

  • Robert Rosca added 1 commit

    added 1 commit

    • eb5bc8b4 - Apply suggestion to cal_tools/cal_tools/agipdlib.py

    Compare with previous version

  • Robert Rosca
  • Robert Rosca resolved all discussions

    resolved all discussions

  • Robert Rosca added 1 commit

    added 1 commit

    • 1c4ef89e - Apply suggestion to cal_tools/cal_tools/metrology.py

    Compare with previous version

  • Robert Rosca added 1 commit

    added 1 commit

    • 1c4ef89e - Apply suggestion to cal_tools/cal_tools/metrology.py

    Compare with previous version

  • Cyril: "Awesome, you're cool! LGTM"

  • merged

  • Robert Rosca mentioned in commit 9b6879f7

    mentioned in commit 9b6879f7

  • Please register or sign in to reply
    Loading