Commit Graph

63 Commits

Author SHA1 Message Date
ftong e7a344bca3 Update src/seismic_hazard_forecasting.py
remove "percentage" in activity rate csv
2026-06-19 15:45:23 +02:00
ftong 01ec215124 Update src/seismic_hazard_forecasting.py
missing from matplotlib.ticker import MultipleLocator
2026-06-19 15:41:33 +02:00
ftong f50a315ed7 Update src/seismic_hazard_forecasting.py
import matplotlib
2026-06-19 15:39:41 +02:00
ftong 037863e975 Update src/seismic_hazard_forecasting.py
temporary global variables since GUI not ready
2026-06-19 15:38:35 +02:00
ftong fb00131997 Update src/seismic_hazard_forecasting.py 2026-06-19 15:33:43 +02:00
ftong 41a900c366 Update src/seismic_hazard_forecasting.py
import numpy
2026-06-19 15:09:47 +02:00
ftong 4212037a78 Update src/seismic_hazard_forecasting.py
fix time_win_duration name
2026-06-19 15:08:17 +02:00
ftong a00d4d6f52 Update src/seismic_hazard_forecasting.py
fix missing call to bin_and_beast
2026-06-19 15:02:14 +02:00
ftong 09cf4b0e6a Update src/seismic_hazard_forecasting.py
fix mag_label
2026-06-19 14:54:20 +02:00
ftong 3b797e41cb Update src/seismic_hazard_forecasting.py
fix syntax error
2026-06-19 14:40:44 +02:00
ftong b51e5b9f43 Update src/seismic_hazard_forecasting.py
correct mag_data variable name
2026-06-19 14:38:00 +02:00
ftong bb3184a126 Update src/seismic_hazard_forecasting.py
correct activity rate to be per time unit before fed to forecasting
2026-06-19 14:36:49 +02:00
ftong 46ff6b8a6c Update src/seismic_hazard_forecasting.py
use new activity rate forecast method
2026-06-19 14:29:44 +02:00
ftong 7e89f75c84 Update src/seismic_hazard_forecasting.py
put AOI_extent as a parameter of the main function
2026-06-15 11:05:04 +02:00
ftong 6fac004cac Update src/seismic_hazard_forecasting.py
when the 4 values specifying the lat and lon range of the area of interest (AOI) are provided, only do forecasting for grid points within the AOI
2026-06-10 18:13:04 +02:00
ftong a5534212ba cleanup 2025-09-25 12:07:02 +02:00
ftong d661cad991 disable progress bar 2025-09-24 14:13:21 +02:00
ftong 3136c4985d disable cython 2025-09-24 14:05:22 +02:00
ftong deb7005604 Force use of fork in multiprocessing
From Tomasz Balawajder:
"Since we are using a Java service to launch the Python process, its behavior differs from running the script directly on the cluster.

By default, Dask uses fork() to create worker processes. However, when running under the JVM, the start method defaults to spawn, which does not share memory between processes. This caused the slowdown and unexpected behavior.

I’ve forced Python to use fork() in the configuration, and now the application completes in the same time as when executed with sbatch."
2025-09-23 11:41:08 +02:00
ftong fe9d886499 interpolation is always used on the final grid 2025-09-12 10:37:03 +02:00
ftong f7eb39c43c add final image smoothing through binlinear interpolation 2025-09-10 18:39:43 +02:00
ftong 00bd39a098 impose requirement of minimum size of range of output data to do image processing 2025-09-10 16:33:11 +02:00
ftong 5a1f43d6cd enforce: user must have "activity rate estimation" unselected for custom rate to be used
Previously, user could enter a value enter the  custom rate box, enable "activity rate estimation" and the custom rate box would disappear but the program would still see the value previously entered and use it even though it was no longer visible in the user interface
2025-09-10 12:00:50 +02:00
ftong a1c0ae36bb set a minimum number of computed grid values to trigger upscaling of grid image 2025-09-09 14:41:02 +02:00
ftong 63351ceb10 fix weighting option selection 2025-09-09 11:03:05 +02:00
ftong 65759b86f1 change search interval for PGV to be different than that for PGA/SA 2025-09-09 10:56:35 +02:00
ftong 86da5c3246 Update src/seismic_hazard_forecasting.py 2025-08-08 18:28:34 +02:00
asia 910d933467 Merge branch 'master' into ftong-patch-cython 2025-07-10 08:55:13 +02:00
ftong e06f4a5a05 edit error message for clarity 2025-07-09 15:23:42 +02:00
ftong 2906af6918 improve error message when user provides magnitude file incompatible with ground motion model 2025-07-09 15:09:44 +02:00
ftong dd84829b6d define m_max when magnitude distribution estimation is not enabled; take from user's m_file 2025-07-09 13:27:44 +02:00
ftong 5b25b93090 convert custom activity rate from list to numpy array of type 'double' to satisfy cython input 2025-07-09 13:15:04 +02:00
ftong d56aaeef39 Update src/seismic_hazard_forecasting.py 2025-07-09 11:25:55 +02:00
ftong b4ef228a03 Update src/seismic_hazard_forecasting.py 2025-07-09 11:08:04 +02:00
ftong 664ab1025b catch time_win_duration values that are too large 2025-07-07 16:42:57 +02:00
ftong 36378f4d6c Update src/seismic_hazard_forecasting.py 2025-07-07 16:36:40 +02:00
ftong 1244655a68 Update src/seismic_hazard_forecasting.py 2025-07-07 15:07:33 +02:00
ftong 70c08f47ab add info msg about m_max 2025-07-07 14:49:35 +02:00
ftong 60ae1c96cd raise exception for null magnitude values 2025-07-07 14:43:42 +02:00
ftong 1ea6c85ab2 Update src/seismic_hazard_forecasting.py 2025-07-07 13:45:17 +02:00
ftong 84440152eb Update src/seismic_hazard_forecasting.py 2025-07-07 13:40:02 +02:00
ftong a941939493 remove processing of depth as it is not used 2025-07-07 13:25:05 +02:00
ftong f4d2cfc3cd add check that m_max is not too large for the ground motion model 2025-07-02 15:43:05 +02:00
ftong bd1ad26693 change default m_max from 3 to 1 mag unit above max mag in catalog 2025-07-02 15:33:42 +02:00
ftong bc4d57a5ab catch null result from ground motion forecasting 2025-07-02 14:27:33 +02:00
ftong 921de3f423 fix - activity rate figure no longer cut off at the bottom 2025-07-01 16:24:59 +02:00
ftong b287715f44 use distances in km instead of m 2025-07-01 16:09:24 +02:00
ftong eb14b7d235 update package version logging, remove cpu tracking 2025-07-01 16:06:11 +02:00
ftong 4adfbb6a54 add 'g' as unit of colorbar for PGA and SA 2025-06-06 17:09:48 +02:00
ftong bd468927f3 Update src/seismic_hazard_forecasting.py 2025-06-06 16:40:46 +02:00