Skip to content

Commit

Permalink
adapt qgep export and qgepdss export
Browse files Browse the repository at this point in the history
  • Loading branch information
sjib committed Nov 12, 2024
1 parent b089be5 commit 91156f0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
10 changes: 8 additions & 2 deletions qgepqwat2ili/qgep/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@
from .. import utils

# 4.10.2024
from ..utils.ili2db import skip_wwtp_structure_ids
from ..utils.various import logger
# from ..utils.ili2db import skip_wwtp_structure_ids
# 6.11.2024 replaced with
from ..utils.ili2db import (
add_to_selection,
get_cl_re_ids,
get_ws_wn_ids,
remove_from_selection,
)from ..utils.various import logger
from .model_abwasser import get_abwasser_model
from .model_qgep import get_qgep_model

Expand Down
14 changes: 9 additions & 5 deletions qgepqwat2ili/qgepdss/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
from .. import utils

# 4.10.2024
from ..utils.ili2db import skip_wwtp_structure_ids
# from ..utils.ili2db import skip_wwtp_structure_ids
# 6.11.2024 replaced with
from ..utils.ili2db import (
add_to_selection,
get_cl_re_ids,
get_ws_wn_ids,
remove_from_selection,
)
from ..utils.various import logger
from .model_abwasser import get_abwasser_model
from .model_qgep import get_qgep_model
Expand Down Expand Up @@ -46,10 +53,7 @@ def qgep_export(selection=None, labels_file=None, orientation=None):
# Logging for debugging
logger.debug(f"print subset_ids '{subset_ids}'")

# get list of id's of class wwtp_structure (ARABauwerk) to be able to check if fk_wastewater_structure references to wwtp_structure

wastewater_structure_id_sia405abwasser_list = None
wastewater_structure_id_sia405abwasser_list = skip_wwtp_structure_ids()
# ws_off_sia405abwasser_list and selection process not needed for VSA-DSS Export

logger.info(
f"wastewater_structure_id_sia405abwasser_list : {wastewater_structure_id_sia405abwasser_list}",
Expand Down

0 comments on commit 91156f0

Please sign in to comment.