Skip to content

Commit b00f4c6

Browse files
committed
fix lint error
1 parent 63a8f43 commit b00f4c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pvapy/cli/adSimServer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class FrameGenerator:
3535
''' Base frame generator class. '''
3636

3737
def __init__(self):
38-
self.frames = []
38+
self.frames = np.array([])
3939
self.nInputFrames = 0
4040
self.rows = 0
4141
self.cols = 0
@@ -48,7 +48,7 @@ def getFrameData(self, frameId):
4848
return None
4949

5050
def getFrameInfo(self):
51-
if self.frames and not self.nInputFrames:
51+
if len(self.frames) > 0 and not self.nInputFrames:
5252
self.nInputFrames, self.rows, self.cols = self.frames.shape
5353
self.dtype = self.frames.dtype
5454
return (self.nInputFrames, self.rows, self.cols, self.dtype, self.compressorName)

0 commit comments

Comments
 (0)