update
Browse files
app.py
CHANGED
|
@@ -94,6 +94,10 @@ def run_gamma(picks, config, stations):
|
|
| 94 |
+ config["dims"]
|
| 95 |
+ ["magnitude", "sigma_time", "sigma_amp", "cov_time_amp", "event_index", "gamma_score"],
|
| 96 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
catalogs[["longitude", "latitude"]] = catalogs.apply(
|
| 98 |
lambda x: pd.Series(proj(longitude=x["x(km)"], latitude=x["y(km)"], inverse=True)), axis=1
|
| 99 |
)
|
|
|
|
| 94 |
+ config["dims"]
|
| 95 |
+ ["magnitude", "sigma_time", "sigma_amp", "cov_time_amp", "event_index", "gamma_score"],
|
| 96 |
)
|
| 97 |
+
if len(catalogs) == 0:
|
| 98 |
+
print("No events associated")
|
| 99 |
+
return pd.DataFrame(), pd.DataFrame()
|
| 100 |
+
|
| 101 |
catalogs[["longitude", "latitude"]] = catalogs.apply(
|
| 102 |
lambda x: pd.Series(proj(longitude=x["x(km)"], latitude=x["y(km)"], inverse=True)), axis=1
|
| 103 |
)
|