Skip to content

Commit

Permalink
change slc files list from str to Path object
Browse files Browse the repository at this point in the history
  • Loading branch information
Emre Havazli committed Nov 2, 2023
1 parent bd16e6c commit c246ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sweets/_missing_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_geodataframe(

gdf = gpd.GeoDataFrame(geometry=polygons, crs="EPSG:4326")
gdf["count"] = 1
gdf["filename"] = [p.stem for p in gslc_files]
gdf["filename"] = [Path(p).stem for p in gslc_files]
gdf["date"] = pd.to_datetime(gdf.filename.str.split("_").str[3])
gdf["burst_id"] = gdf.filename.str[:15]
return gdf
Expand Down

0 comments on commit c246ecf

Please sign in to comment.