Skip to content

Commit

Permalink
Remove redundant return values.
Browse files Browse the repository at this point in the history
  • Loading branch information
tebadi committed Jun 14, 2023
1 parent 4864b23 commit 15a5aa2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tools/dea_tools/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
import os
import sys
import joblib
import datacube
import rasterio
import numpy as np
import pandas as pd
import xarray as xr
Expand Down Expand Up @@ -496,7 +494,7 @@ def _get_training_data_for_shp(

# if no data is present then return
if len(data) == 0:
return None, None
return

if gdf.iloc[[index]].geometry.geom_type.values != 'Point':
# If the geometry type is a polygon extract all pixels
Expand Down

0 comments on commit 15a5aa2

Please sign in to comment.