Skip to content

Commit

Permalink
test from temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
PennyHow committed Nov 5, 2024
1 parent 63545fb commit 07671cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/griml/test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def create_sample_pointfile(self, filepath, num_features=5):
gdf.reset_index(drop=True, inplace=True)
gdf.set_index("row_id", inplace=True)
gdf.to_file(filepath)
# return gdf

def create_sample_polyfile(self, filepath, num_features=5, side_length=1.0):
# Generate a synthetic GeoDataFrame with square polygon geometries
Expand Down Expand Up @@ -72,6 +73,7 @@ def create_sample_polyfile(self, filepath, num_features=5, side_length=1.0):
gdf.reset_index(drop=True, inplace=True)
gdf.set_index("row_id", inplace=True)
gdf.to_file(filepath)
# return gdf

def test_convert(self):
'''Test vector to raster conversion'''
Expand Down

0 comments on commit 07671cd

Please sign in to comment.