Skip to content

Commit

Permalink
Typo in a error message in gym/wrappers/monitoring/video_recorder.py (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
Naereen authored and pzhokhov committed Feb 26, 2019
1 parent ce9b4e4 commit 53e4b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gym/wrappers/monitoring/video_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def __init__(self, output_path, frame_shape, frames_per_sec):
# Frame shape should be lines-first, so w and h are swapped
h, w, pixfmt = frame_shape
if pixfmt != 3 and pixfmt != 4:
raise error.InvalidFrame("Your frame has shape {}, but we require (w,h,3) or (w,h,4), i.e. RGB values for a w-by-h image, with an optional alpha channl.".format(frame_shape))
raise error.InvalidFrame("Your frame has shape {}, but we require (w,h,3) or (w,h,4), i.e., RGB values for a w-by-h image, with an optional alpha channel.".format(frame_shape))
self.wh = (w,h)
self.includes_alpha = (pixfmt == 4)
self.frame_shape = frame_shape
Expand Down

0 comments on commit 53e4b2c

Please sign in to comment.