From e1924587df40780ebb3f55628c2160cc2f901fec Mon Sep 17 00:00:00 2001 From: ftong <95+ftong@noreply.example.org> Date: Tue, 23 Jun 2026 17:18:52 +0200 Subject: [PATCH] Update src/seismic_hazard_forecasting.py use AOI from user interface --- src/seismic_hazard_forecasting.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/seismic_hazard_forecasting.py b/src/seismic_hazard_forecasting.py index 4b768fb..15e2f63 100644 --- a/src/seismic_hazard_forecasting.py +++ b/src/seismic_hazard_forecasting.py @@ -7,13 +7,13 @@ from matplotlib.ticker import MultipleLocator import matplotlib.pyplot as plt import numpy as np -global ncp_choice, tcp_max, torder_min, torder_max, AOI_lat, AOI_lon +global ncp_choice, tcp_max, torder_min, torder_max ncp_choice = 'default' tcp_max = 5 torder_min = 0 torder_max = 1 -AOI_lat = np.array([51.48, 51.54]) -AOI_lon = np.array([16.15, 16.24]) +#AOI_lat = np.array([51.48, 51.54]) +#AOI_lon = np.array([16.15, 16.24]) #AOI_lat = np.array([None, None]) #AOI_lon = np.array([None, None]) @@ -253,8 +253,7 @@ def bins_and_beast(dates, unit, bin_dur, multiplicator): def main(catalog_file, mc_file, pdf_file, m_file, m_select, mag_label, mc, m_max, m_kde_method, xy_select, grid_dim, xy_win_method, rate_select, time_win_duration, - forecast_select, custom_rate, forecast_len, time_unit, model, products_string, verbose): -# forecast_select, custom_rate, forecast_len, time_unit, AOI_extent, model, products_string, verbose): + forecast_select, custom_rate, forecast_len, time_unit, AOI_extent, model, products_string, verbose): """ Python application that reads an earthquake catalog and performs seismic hazard forecasting. Arguments: