|
26 | 26 |
|
27 | 27 | class Constraint: |
28 | 28 | """ |
29 | | - Main class for handling of constraints. Constraints implemented so far: |
| 29 | + Main class for handling of constraints. Constraints implemented so far: |
30 | 30 | LandCrossing (prohibit land crossing), WaterDepth (prohibit crossing of areas with too low water depth), |
31 | 31 | StayOnMap (prohibit leaving the area for which the weather data has been obtained) |
32 | 32 | """ |
@@ -214,7 +214,7 @@ class ConstraintsList: |
214 | 214 | """ |
215 | 215 | List of constraints. During the routing procedure, you can check for ConstraintList.safe_crossing(lat_start, |
216 | 216 | lat_end, lon_start, lon_end, time) which looks for constraints in between starting point and destination. |
217 | | - Alternatively it can also be checked for a single point whether a constraint is hit via |
| 217 | + Alternatively it can also be checked for a single point whether a constraint is hit via |
218 | 218 | ConstraintList.safe_endpoint(lat, lon, time). |
219 | 219 | """ |
220 | 220 |
|
@@ -591,7 +591,7 @@ def load_data_ODC(self, depth_path, product_name, measurements=None): |
591 | 591 | :raises KeyError: measurement in measurements is not known on ODC |
592 | 592 | :return: Depth data loaded from ODC |
593 | 593 | :rtype: xarray.Dataset |
594 | | - """ |
| 594 | + """ |
595 | 595 | logger.info(form.get_log_step('Obtaining depth data from ODC', 0)) |
596 | 596 |
|
597 | 597 | dc = datacube.Datacube() |
@@ -646,7 +646,7 @@ def load_data_automatic(self, depth_path): |
646 | 646 |
|
647 | 647 | def load_data_from_file(self, depth_path): |
648 | 648 | """ |
649 | | - Load depth data from given file |
| 649 | + Load depth data from given file |
650 | 650 |
|
651 | 651 | :param depth_path: Path to the depth data |
652 | 652 | :type depth_path: str |
@@ -804,15 +804,15 @@ class ContinuousCheck(NegativeContraint): |
804 | 804 | for the continuous check in the negative constraints |
805 | 805 | """ |
806 | 806 |
|
807 | | - host : str |
808 | | - database : str |
809 | | - user : str |
810 | | - password : str |
811 | | - port : str # returns values from .env to be passed in the engine of the db |
| 807 | + host: str |
| 808 | + database: str |
| 809 | + user: str |
| 810 | + password: str |
| 811 | + port: str # returns values from .env to be passed in the engine of the db |
812 | 812 |
|
813 | | - predicates : list # Possible spatial relations to be tested when considering the constraints |
| 813 | + predicates: list # Possible spatial relations to be tested when considering the constraints |
814 | 814 |
|
815 | | - tags : list # Values of the seamark tags that need to be considered |
| 815 | + tags: list # Values of the seamark tags that need to be considered |
816 | 816 |
|
817 | 817 | engine: sqlalchemy.engine |
818 | 818 |
|
@@ -891,15 +891,15 @@ class SeamarkCrossing(ContinuousCheck): |
891 | 891 | for the continuous check in the negative constraints |
892 | 892 | """ |
893 | 893 |
|
894 | | - host : str |
895 | | - database : str |
896 | | - user : str |
897 | | - password : str |
898 | | - port : str # returns values from .env to be passed in the engine of the db |
| 894 | + host: str |
| 895 | + database: str |
| 896 | + user: str |
| 897 | + password: str |
| 898 | + port: str # returns values from .env to be passed in the engine of the db |
899 | 899 |
|
900 | | - predicates : list # Possible spatial relations to be tested when considering the constraints |
| 900 | + predicates: list # Possible spatial relations to be tested when considering the constraints |
901 | 901 |
|
902 | | - tags : list # Values of the seamark tags that need to be considered |
| 902 | + tags: list # Values of the seamark tags that need to be considered |
903 | 903 |
|
904 | 904 | concat_tree: STRtree |
905 | 905 |
|
|
0 commit comments