Commit 9f4b69ff authored by Shahroz Ahmed's avatar Shahroz Ahmed
Browse files

deletion of imports and removal of unused variables

refs #15172
parent 9ca5e73b
# pylint: disable=no-init,invalid-name, attribute-defined-outside-init, too-many-instance-attributes
# pylint: disable=no-init,invalid-name, too-many-instance-attributes
import math
import numpy as np
......
......@@ -416,7 +416,7 @@ def calibrate(ws, tubeSet, knownPositions, funcForm, **kwargs):
idealTube = IdealTube()
idealTube.setArray(numpy.array(knownPositions))
# pylint: disable = raising-bad-type
#pylint: disable = raising-bad-type
# deal with funcForm parameter
try:
nPeaks = len(idealTube.getArray())
......@@ -455,8 +455,7 @@ def calibrate(ws, tubeSet, knownPositions, funcForm, **kwargs):
# Get tube length and number of detectors
tube_length = tubeSet.getTubeLength(0)
# ndets = len(wsp_index_for_tube0)
# pylint:disable= unused-variable
id1, ndets, step = tubeSet.getDetectorInfoFromTube(0)
dummy_id1, ndets, dummy_step = tubeSet.getDetectorInfoFromTube(0)
known_pos = idealTube.getArray()
# position of the peaks in pixels
......
# pylint: disable=invalid-name, protected-access, unused-variable, W0121
# pylint: disable=protected-access, unused-variable, W0121
# W0121 = Use raise ErrorClass(args) instead of raise ErrorClass, args.
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment