Comments (3)
Seems to be the intended behavior, indeed the docstring of the class says
:raises KeyError:
If ``imt`` is not available in the table and no interpolation
can be done.
from oq-engine.
I don't think this was the intended behaviour of the GMPE, but perhaps the issue raised didn't provide a full enough explanation.
AkkarBommer2010SWISS01
, AkkarBommer2010SWISS04
and AkkarBommer2010SWISS08
all inherit from AkkarBommer2010
, which is defined as supported for PGA, SA and PGV. The sub-classes don't change the DEFINED_FOR_INTENSITY_MEASURE_TYPES
attribute, so they are also indicted as being supported for PGA, SA and PGV. However, the Swiss subclasses use the rock adjustment factors here: https://github.com/gem/oq-engine/blob/master/openquake/hazardlib/gsim/akkar_bommer_2010_swiss_coeffs.py, which are only defined for PGA and SA, but not for PGV. The outcome of this is that OQ will pass the validation checks if you try to run calculations with them using PGV but then later crash out with theKeyError
that occurs when it tries to get the PGV coefficients from these tables.
The fix is just to update DEFINED_FOR_INTENSITY_MEASURE_TYPES = {PGA, SA}
in the subclasses.
from oq-engine.
Ah, thanks Graeme, now it is clear.
from oq-engine.
Related Issues (20)
- Raise error for missing `residents` at the beginning of the calculation
- Stations still appear to be plotted in Avg GMF
- Implementation of post-loss amplification (PLA) HOT 3
- Document `oq show delta_loss`
- Add check in job.ini for scenario calculations
- Investigations for conditioned scenarios (needed for the Aristotle project)
- individual_rlzs is not honored with --hc HOT 1
- Add an early check for mixed sources
- Think about OQ_APPLICATION_MODE
- Move checks from settings.py to a function called when the webui is started
- Think about disabling numba in same places
- Calculate consequences from multiple perils (ground shaking and sep) for each asset
- openquake Hazard run job.ini crash Memory Error!!! HOT 7
- Improve error handling
- use of region_grid_spacing in a conditioned gmf produces a key error now HOT 2
- Access to additional variance components of GMM standard deviation models HOT 1
- Imported CSV ruptures cannot exported
- Incorrect documentation for Afshari Stewart 2016 HOT 1
- Extend read_geometries to the case of a non-unique field
- Mention `create_jobs` and `run_jobs` in the documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oq-engine.