GEMScienceTools / gmpe-smtk

Python and OpenQuake-based Toolkit for Analysis of Strong Motions and Interpretation of GMPEs
GNU Affero General Public License v3.0
43 stars 33 forks source link

Handles nans in residuals plots and improves sm_table selection expressions #104

Closed rizac closed 5 years ago

rizac commented 5 years ago

This PR fixes mainly two things:

  1. It handles NaN in residuals plot calculation (this should affect only the case when a user chooses a sm_table instead of a sm_database), using numpy nan-safe methods (nanmean,and so on)

  2. Improves the warning and errors to be given when a user uses a numexpr expression for filtering an sm_table

g-weatherill commented 5 years ago

LGTM