Skip to content

Commit 468ffe8

Browse files
committed
infer compression from file path #451 #453
1 parent b5c2e34 commit 468ffe8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mapswipe_workers/mapswipe_workers/generate_stats/project_stats.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ def get_per_project_statistics(project_id: str, project_info: pd.Series) -> dict
360360
agg_results_df = get_agg_results_by_task_id(results_df, tasks_df)
361361
agg_results_df.to_csv(
362362
agg_results_filename,
363-
index_label="idx",
364-
compression="gzip"
363+
index_label="idx"
365364
)
366365

367366
geojson_functions.gzipped_csv_to_gzipped_geojson(
@@ -379,8 +378,7 @@ def get_per_project_statistics(project_id: str, project_info: pd.Series) -> dict
379378
)
380379
agg_results_by_user_id_df.to_csv(
381380
agg_results_by_user_id_filename,
382-
index_label="idx",
383-
compression="gzip"
381+
index_label="idx"
384382
)
385383
logger.info(
386384
f"saved agg results for {project_id}: {agg_results_by_user_id_filename}"

0 commit comments

Comments
 (0)