Skip to content

Commit

Permalink
Exposing parameters to understand Action failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kcartier-wri committed Aug 29, 2024
1 parent c33c58c commit c476aa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_layer_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def validate_layer_instance(obj_string):

def evaluate_layer(layer, expected_resolution):
data = layer.get_data(BBOX)
actual_estimated_resolution, y_cells, y_diff = get_resolution_estimate(data)
print ('y_cells %s, y_diff %s' % (y_cells, y_diff))
actual_estimated_resolution, y_cells, y_min, y_max = get_resolution_estimate(data)
print ('y_cells %s, y_min %s, y_max %s' % (y_cells, y_min, y_max))
assert expected_resolution == actual_estimated_resolution

def get_resolution_estimate(data):
Expand All @@ -114,4 +114,4 @@ def get_resolution_estimate(data):
y_max = data['y'].values.max()
y_diff = y_max - y_min
ry = round(y_diff/y_cells)
return ry, y_cells, y_diff
return ry, y_cells, y_min, y_max

0 comments on commit c476aa1

Please sign in to comment.