Closed AJamelot closed 4 years ago
Thank you for your PR, I will take a look. Actually we have a similar improvement in the pipeline which allows to filter for lat/lon/depth and magnitude. I will make it available here as soon as possible that you can take a look.
I have pushed commit 74a5133 which implements a more generic event list filter. Please let me know if that works for you or if you need enhancements to it. You can preconfigure the filter with:
eventlist.filter.database.{min|max}{mag|lat|lon|depth} = ...
Work perfectly , very useful new feature thanks a lot for this commit, it does answer to many needs.
One commit is a bug fix to remove GTK3 warnings using CentOS7, that appear when a database request return no events. Example of GTK messages :
(scolv:25241): Gtk-CRITICAL **: 00:35:00.695: IA__gtk_progress_configure: assertion 'value >= min && value <= max' failed
Second commit add an optional magnitude range selection for the Gui applications and their events list viewer, using a minimum magnitude or a maximum magnitude or a specific range.
To activate this feature user must add for example in scolv.cfg :
# Enable/Disable magnitude range filtering.
eventlist.filter.magnitudes.enabled = true
Magnitude selection is used to enhanced the database request. For the origin locator viewer applications (scolv). It is usefull to be able to select a specific magnitude range when request is done over many years to avoid to import all origins.