From 85b1b537956ee1ff0747352715b1b9f1801f34fd Mon Sep 17 00:00:00 2001 From: Federico Esteban Date: Wed, 1 Jan 2025 11:38:00 -0300 Subject: [PATCH] Fix events for infinite symbols (#8611) * Fix * Add GMT_KNOWN_FAILURE --- src/psevents.c | 2 +- test/psevents/events.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/psevents.c b/src/psevents.c index 8f56230c56f..2d48d7ef0a6 100644 --- a/src/psevents.c +++ b/src/psevents.c @@ -846,7 +846,7 @@ GMT_LOCAL void psevents_set_outarray (struct GMT_CTRL *GMT, struct PSEVENTS_CTRL out[t_col] = 0.0; if (Ctrl->M.active[PSEVENTS_DZ]) out[z_col] += Ctrl->M.value[PSEVENTS_DZ][PSEVENTS_VAL1] * x; /* Changing of color via dz */ } - else if (finite_duration && t_now < t[PSEVENTS_T_END]) { /* We are within the normal display phase with nominal symbol size */ + else if (t_now < t[PSEVENTS_T_END]) { /* We are within the normal display phase with nominal symbol size */ out[x_col] = 1.0; out[i_col] = out[t_col] = 0.0; /* No intensity or transparency during normal phase */ } diff --git a/test/psevents/events.sh b/test/psevents/events.sh index dd92b18a1d8..3d9325980eb 100755 --- a/test/psevents/events.sh +++ b/test/psevents/events.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash # Test gmt psevents with some quakes +# GMT_KNOWN_FAILURE + ps=events.ps #gmt convert "https://earthquake.usgs.gov/fdsnws/event/1/query.csv?starttime=2018-01-01%2000:00:00&endtime=2018-12-31%2000:00:00&minmagnitude=5&orderby=time-asc" \