Skip to content

Commit 2529c6a

Browse files
committed
update dockerfile
1 parent 0b098f6 commit 2529c6a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ COPY handler.py dataset.py models.py spec-file.txt /work/
4949

5050
VOLUME ["/input/pre", "/input/post", "/input/polys", "/output"]
5151

52-
ENTRYPOINT [ "conda", "run", "-n", "xv", "python", "handler.py","--pre_directory", "/input/pre", "--post_directory", "/input/post", "--output_directory", "/output", "--n_procs", "8", "--batch_size", "2", "--num_workers", "4", "--dp_mode" ]
52+
ENTRYPOINT [ "conda", "run", "-n", "xv", "python", "handler.py","--pre_directory", "/input/pre", "--post_directory", "/input/post", "--output_directory", "/output", "--n_procs", "8", "--batch_size", "2", "--num_workers", "4" ]

utils/dataframe.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def process_df(df, dest_crs):
8484
df["trans_res"] = df.apply(
8585
lambda x: get_trans_res(x.crs, x.width, x.height, x.bounds, dest_crs), axis=1
8686
)
87-
# Remove rasters with resolution that wildly varies from the others
88-
# Remove rasters with CRS that is not the same as most?
87+
# Todo: Remove rasters with resolution that wildly varies from the others
88+
# Todo: Remove rasters with CRS that is not the same as most?
8989

9090
# Todo: handle our rasters with no geographic data
9191
# Remove rasters without transform resolution

utils/features.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ def write_output(features, out_file, layer="features"):
4242
def create_aoi_poly(features):
4343

4444
"""
45-
Create convex hull polygon encompassing damage polygons.
46-
:param features: Polygons to create hull around.
47-
:return: ARCGIS polygon.
45+
Create convex hull polygon encompassing damage polygons
46+
:param features: Polygons to create hull around
47+
:return: GDF
4848
"""
4949
hull = features.dissolve().convex_hull
5050
df = geopandas.GeoDataFrame.from_features(hull, crs=features.crs)
@@ -54,9 +54,9 @@ def create_aoi_poly(features):
5454
def create_centroids(features):
5555

5656
"""
57-
Create centroids from polygon features.
58-
:param features: Polygon features to create centroids from.
59-
:return: List of ARCGIS point features.
57+
Create centroids from polygon features
58+
:param features: Polygon features to create centroids from
59+
:return: GDF
6060
"""
6161

6262
cent_df = geopandas.GeoDataFrame.from_features(features.centroid, crs=features.crs)

0 commit comments

Comments
 (0)