Skip to content

Commit

Permalink
Removed exception for missing crop type 228
Browse files Browse the repository at this point in the history
  • Loading branch information
cgmorton committed May 12, 2020
1 parent b50c0fc commit 3e19a69
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions openet/sims/tests/test_b_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ def test_cdl_crop_types(year):
output = list(map(round, utils.getinfo(
ee.Image('USDA/NASS/CDL/{}'.format(year)).get('cropland_class_values'))))
for crop_type, crop_data in data.cdl.items():
# CGM - Code 228 is currently not set in the image properties
# Adding this if statement until the asset is updated
if crop_type == 228:
continue
assert crop_type in output
# assert all(crop_type in output for crop_type, crop_data in data.cdl.items())

Expand Down

0 comments on commit 3e19a69

Please sign in to comment.