Skip to content

Commit

Permalink
Merge branch 'main' into feat/asa-per-scene
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaraphael committed Nov 20, 2024
2 parents 0e18b8a + ba9d347 commit 3355ef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cerulean_cloud/cloud_function_ais_analysis/utils/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def compute_coincidence_scores(self, slick_gdf: gpd.GeoDataFrame):
# Return a DataFrame with infra_gdf and coincidence_scores
self.results = self.infra_gdf.copy()
self.results["coincidence_score"] = self.coincidence_scores
self.results = self.results[self.results["coincidence_score"] > 0]

self.results["geojson_fc"] = self.infra_gdf["geometry"].apply(
lambda geom: {
"type": "FeatureCollection",
Expand All @@ -423,7 +423,7 @@ def compute_coincidence_scores(self, slick_gdf: gpd.GeoDataFrame):
],
}
)

self.results = self.results[self.results["coincidence_score"] > 0]
self.results["collated_score"] = (
self.results["coincidence_score"] - self.coinc_mean
) / self.coinc_std
Expand Down

0 comments on commit 3355ef1

Please sign in to comment.