From f94c7eea18912b648040066284f392d549715d85 Mon Sep 17 00:00:00 2001 From: Michel Daab Date: Wed, 21 Aug 2024 10:56:59 +0200 Subject: [PATCH] changes so all submodules can be run with python [modulefilename] and not only with python -m [modulefilename] --- lidro/main_create_mask.py | 3 +++ lidro/main_create_virtual_point.py | 3 +++ lidro/main_merge_mask.py | 3 +++ 3 files changed, 9 insertions(+) diff --git a/lidro/main_create_mask.py b/lidro/main_create_mask.py index 6c4927f5..260f30ba 100644 --- a/lidro/main_create_mask.py +++ b/lidro/main_create_mask.py @@ -3,11 +3,14 @@ import logging import os +import sys import hydra from omegaconf import DictConfig from pyproj import CRS +sys.path.append('../lidro') + from lidro.create_mask_hydro.vectors.convert_to_vector import create_hydro_vector_mask diff --git a/lidro/main_create_virtual_point.py b/lidro/main_create_virtual_point.py index fc610166..2ead2845 100644 --- a/lidro/main_create_virtual_point.py +++ b/lidro/main_create_virtual_point.py @@ -3,6 +3,7 @@ import logging import os +import sys import geopandas as gpd import hydra @@ -10,6 +11,8 @@ from omegaconf import DictConfig from pyproj import CRS +sys.path.append('../lidro') + from lidro.create_virtual_point.vectors.extract_points_around_skeleton import ( extract_points_around_skeleton_points_one_tile, ) diff --git a/lidro/main_merge_mask.py b/lidro/main_merge_mask.py index 49854413..ab95d952 100644 --- a/lidro/main_merge_mask.py +++ b/lidro/main_merge_mask.py @@ -3,11 +3,14 @@ import logging import os +import sys import hydra from omegaconf import DictConfig from pyproj import CRS +sys.path.append('../lidro') + from lidro.merge_mask_hydro.vectors.merge_vector import merge_geom