From 5cf85b874ac6a97e3c347c2aa9af66aed633e64a Mon Sep 17 00:00:00 2001 From: Sharon Fitzpatrick Date: Tue, 24 Oct 2023 13:09:00 -0700 Subject: [PATCH] #197 read roi_id to extract shorelines from config --- src/coastseg/zoo_model.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/coastseg/zoo_model.py b/src/coastseg/zoo_model.py index f5a12e92..ca690cf0 100644 --- a/src/coastseg/zoo_model.py +++ b/src/coastseg/zoo_model.py @@ -711,10 +711,8 @@ def extract_shorelines_with_unet( config = file_utilities.load_json_data_from_file( session_path, "config.json" ) - # get the roi_id either from the recent model segmentation or the config file - if settings.get("sample_direc"): - roi_id = file_utilities.extract_roi_id(settings.get("sample_direc", "")) - elif config.get("roi_ids"): + # get the roi_id from the config file + if config.get("roi_ids"): roi_id = config["roi_ids"][0] roi_settings = config[roi_id] except (KeyError, ValueError) as e: