Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Method for exposing the raw data #104

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
catch ValueError
paalge committed Oct 29, 2015
commit 657a9b517f7f64f0e8cb80f19fb62cd63b3d4dc6
4 changes: 2 additions & 2 deletions rawkit/raw.py
Original file line number Diff line number Diff line change
@@ -190,7 +190,7 @@ def get_4_col_raw(self):


Returns:
array: 4 colour data of the image in unit16. (width x height)
list of list: 4 colour data of the image in unit16. (width x height)
str : colour channel description (ie. RGGB, RGBG)
"""
# Unpack the data, so that rawdata is populated
@@ -202,7 +202,7 @@ def get_4_col_raw(self):

try:
rawdata.color4_image.contents
except:
except ValueError:
return None

# Get image size