Skip to content

Commit b623e28

Browse files
committed
no need to open the dataset before translating it. natcap#1686
1 parent 00c9243 commit b623e28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_coastal_vulnerability.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -964,8 +964,7 @@ def test_final_risk_calc_with_missing_data(self):
964964
# first.
965965
base_vector_path = os.path.join(
966966
REGRESSION_DATA, 'test_missing_values.gpkg')
967-
base_shore_point_vector = ogr.Open(base_vector_path)
968-
gdal.VectorTranslate(target_vector_path, base_shore_point_vector)
967+
gdal.VectorTranslate(target_vector_path, base_vector_path)
969968

970969
coastal_vulnerability.calculate_final_risk(
971970
target_vector_path, target_csv_path)

0 commit comments

Comments
 (0)