Skip to content
Snippets Groups Projects
Commit 15e25a6a authored by (no author)'s avatar (no author)
Browse files

adding assert for existance of fill value before it's used; this should make failure less cryptic

git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@175 8a9318a1-56ba-4d59-b755-99d26321be01
parent 4ccf8397
No related branches found
No related tags found
No related merge requests found
......@@ -332,6 +332,9 @@ class DiffInfoObject (object) :
aDataObject.select_fill_value(),
bDataObject.select_fill_value())
# we can't continue if we don't have a fill value
assert(fill_data_value is not None)
# construct our diff'ed data set
raw_diff = np.zeros(shape, dtype=sharedType)
raw_diff[~valid_in_both] = fill_data_value # throw away invalid data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment