Missing import statement causes a NameError to be raised.
Types of issue
[x] Bug report (report an issue with the code)
[ ] Feature request (request for change which adds functionality)
Expected Behavior
No exception should be thrown
Current Behavior
Stack trace is:
Traceback (most recent call last):
File "/opt/cmsgemos/bin/testConnectivity.py", line 1210, in <module>
testConnectivity(args)
File "/opt/cmsgemos/bin/testConnectivity.py", line 871, in testConnectivity
dacAnalysis(args, calTree.gemTree, chamber_config, scandate=startTime)
File "/usr/lib/python2.7/site-packages/gempython/gemplotting/utils/anautilities.py", line 54, in dacAnalysis
vfatIDArray = getSubArray(vfatArray, ['vfatID','vfatN'])
File "/usr/lib/python2.7/site-packages/gempython/gemplotting/utils/anautilities.py", line 884, in getSubArray
dtype2 = np.dtype({name:structArray.dtype.fields[name] for name in fields})
NameError: global name 'np' is not defined
Brief summary of issue
Missing import statement causes a
NameError
to be raised.Types of issue
Expected Behavior
No exception should be thrown
Current Behavior
Stack trace is:
Steps to Reproduce (for bugs)
testConnectivity.py -d 1 6 0x1
Possible Solution (for bugs)
Add:
To:
https://github.com/cms-gem-daq-project/gem-plotting-tools/blob/a535580d4b83126624e925011502396df1281ac7/utils/anautilities.py#L874-L885
Your Environment
/bin/bash