Skip to content

Commit

Permalink
Reorgarnized imports in constraints module
Browse files Browse the repository at this point in the history
  • Loading branch information
MPremasiri committed Mar 15, 2024
1 parent a815c58 commit 397c4c7
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions WeatherRoutingTool/constraints/constraints.py
Original file line number Diff line number Diff line change
@@ -1,36 +1,32 @@
import os
import logging

import cartopy.crs as ccrs
import cartopy.feature as cf
import datacube
import geopandas as gpd
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import sqlalchemy
import xarray as xr
from global_land_mask import globe
from shapely.geometry import Point, LineString, box
from shapely.strtree import STRtree

from maridatadownloader import DownloaderFactory
import WeatherRoutingTool.utils.graphics as graphics
import WeatherRoutingTool.utils.formatting as form
from maridatadownloader import DownloaderFactory
from WeatherRoutingTool.routeparams import RouteParams
from WeatherRoutingTool.utils.maps import Map
from WeatherRoutingTool.weather import WeatherCond

# used as a part of the continuouscheck class ##
import os
import sqlalchemy
import pandas as pd
import geopandas as gpd
from shapely.geometry import Point, LineString, box
from shapely.strtree import STRtree


# Load the environment variables from the .env file
parent = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

logger = logging.getLogger("WRT.Constraints")


#
# Constraint: Main class for handling of constraints
# PositiveConstraint: handling of constraints where the ship NEEDS to take a certain route (e.g. waterways)
# NegativeConstraint: handling of constraints where the ship MUST NOT pass a certain area (too low water depth,
Expand Down

0 comments on commit 397c4c7

Please sign in to comment.