Update src/seismic_hazard_forecasting.py

add more logging
This commit is contained in:
2026-06-23 13:09:39 +02:00
parent 72dc427a0e
commit 73fd54cc76
+5 -1
View File
@@ -524,6 +524,8 @@ verbose: {verbose}")
x_range = np.linspace(grid_x_min, grid_x_max, nx)
y_range = np.linspace(grid_y_min, grid_y_max, ny)
logger.debug(f"Grid X range: {x_range}, Y range: {y_range}")
t_windowed = time
r_windowed = [[x, y]]
@@ -797,7 +799,7 @@ verbose: {verbose}")
end = timer()
logger.info(f"Ground motion exceedance computation time: {round(end - start, 1)} seconds")
logger.info(f"IMT values: {iml_grid_raw[0]}")
logger.debug(f"IMT values: {iml_grid_raw[0]}")
if np.isnan(iml_grid_raw).all():
msg = "No valid ground motion intensity measures were forecasted. Try a different ground motion model."
@@ -868,6 +870,8 @@ verbose: {verbose}")
east, west = grid_lon_max, grid_lon_min # Longitude range
bounds = [[south, west], [north, east]]
logger.debug(f"Grid extent North {north}, South {south}, East {east}, West {west}")
map_center = [np.mean([north, south]), np.mean([east, west])]
# Create an image from the grid