Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpye committed Nov 24, 2023
1 parent ebac552 commit 135a5ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyobistools/validation/check_onland.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def check_onland(data, land=None, report=False, buffer=0, offline=False):
if len(gdf) > 0:
return gdf[
gdf["on_land"]
] # TODO: return a report format describing which rows are land-bound
else: # the function returns an empty dataframe
]
else: # the function returns an empty dataframe
return pd.DataFrame(index=data.index, columns=data.columns) # return empty dataframe in the same shape, as per the R implementation
else: # if we are not returning a report, return the offending rows themselves.
return gdf[gdf["on_land"]]

0 comments on commit 135a5ab

Please sign in to comment.