Skip to content

Commit

Permalink
imports on a single line
Browse files Browse the repository at this point in the history
  • Loading branch information
minhemdnv committed Feb 28, 2024
1 parent 46f1ab0 commit 8cbb831
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/trafficgen/encounter.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,20 @@
EncounterType,
)

from maritime_schema.types.caga import Initial, OwnShip, Position, TargetShip, Waypoint

from trafficgen.utils import (
calculate_position_at_certain_time,
convert_angle_0_to_2_pi_to_minus_pi_to_pi,
convert_angle_minus_pi_to_pi_to_0_to_2_pi,
)

from maritime_schema.types.caga import (
Initial,
OwnShip,
Position,
TargetShip,
Waypoint,
)


def generate_encounter(
desired_encounter_type: EncounterType,
Expand Down
7 changes: 6 additions & 1 deletion src/trafficgen/read_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
)
from trafficgen.utils import deg_2_rad, knot_2_m_pr_s, min_2_s, nm_2_m

from maritime_schema.types.caga import AISNavStatus, OwnShip, TargetShip, TrafficSituation
from maritime_schema.types.caga import (
AISNavStatus,
OwnShip,
TargetShip,
TrafficSituation,
)


def read_situation_files(situation_folder: Path, input_units: UnitType) -> List[TrafficSituation]:
Expand Down

0 comments on commit 8cbb831

Please sign in to comment.