Skip to content

Commit

Permalink
shorten imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaraphael committed Sep 23, 2023
1 parent a0a2501 commit 90bde39
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 3 additions & 5 deletions cerulean_cloud/cloud_function_ais_analysis/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@
from google.cloud import tasks_v2
from google.protobuf import timestamp_pb2

from cerulean_cloud.cloud_function_ais_analysis.utils.ais import AISConstructor
from cerulean_cloud.cloud_function_ais_analysis.utils.associate import (
associate_ais_to_slicks,
slicks_to_curves,
)
from cerulean_cloud.database_client import DatabaseClient, get_engine

from .utils.ais import AISConstructor
from .utils.associate import associate_ais_to_slicks, slicks_to_curves

# mypy: ignore-errors


Expand Down
2 changes: 1 addition & 1 deletion cerulean_cloud/cloud_function_ais_analysis/utils/ais.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import pandas_gbq
import shapely

from cerulean_cloud.cloud_function_ais_analysis.utils.constants import (
from .constants import (
AIS_BUFFER,
BUF_VEC,
D_FORMAT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import shapely.geometry
import shapely.ops

from cerulean_cloud.cloud_function_ais_analysis.utils.scoring import (
from .scoring import (
compute_frechet_distance,
compute_overlap_score,
compute_temporal_score,
Expand Down
2 changes: 2 additions & 0 deletions stack/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""A Python Pulumi program"""

import cloud_function_ais_analysis
import cloud_function_historical_run
import cloud_function_scene_relevancy
import cloud_run_offset_tile
Expand All @@ -26,5 +27,6 @@
"scene_relevancy_url", cloud_function_scene_relevancy.fxn.https_trigger_url
)
pulumi.export("historical_run_url", cloud_function_historical_run.fxn.https_trigger_url)
pulumi.export("ais_analysis_url", cloud_function_ais_analysis.fxn.https_trigger_url)
pulumi.export("sns_topic_subscription", sns_subscription.sentinel1_sqs_target.arn)
pulumi.export("api_key", pulumi.Config("cerulean-cloud").require("apikey"))

0 comments on commit 90bde39

Please sign in to comment.