Skip to content

Commit

Permalink
Merge branch 'master' into release/5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
sveseli committed Mar 29, 2023
2 parents c308d07 + b00f4c6 commit 0db6f7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pvapy/cli/adSimServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class FrameGenerator:
''' Base frame generator class. '''

def __init__(self):
self.frames = None
self.frames = np.array([])
self.nInputFrames = 0
self.rows = 0
self.cols = 0
Expand All @@ -48,7 +48,7 @@ def getFrameData(self, frameId):
return None

def getFrameInfo(self):
if self.frames is not None and not self.nInputFrames:
if len(self.frames) > 0 and not self.nInputFrames:
self.nInputFrames, self.rows, self.cols = self.frames.shape
self.dtype = self.frames.dtype
return (self.nInputFrames, self.rows, self.cols, self.dtype, self.compressorName)
Expand Down

0 comments on commit 0db6f7b

Please sign in to comment.