Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to create a geopackage for the JPN model. #8392

Open
mmpagani opened this issue Feb 9, 2023 · 2 comments
Open

Error when trying to create a geopackage for the JPN model. #8392

mmpagani opened this issue Feb 9, 2023 · 2 comments
Assignees
Milestone

Comments

@mmpagani
Copy link
Member

mmpagani commented Feb 9, 2023

The last version of the JPN model contains some characteristicFaultSources whose ruptures are represented as griddedSurfaces. The error generated while creating this file is UnboundLocalError: node characteristicFaultSource: local variable 'geom' referenced before assignment. This happens since here https://github.com/gem/oq-engine/blob/master/openquake/hazardlib/sourceconverter.py#L1477 the case of a griddedSurface is not considered.

@micheles micheles added this to the Engine 3.17.0 milestone Feb 9, 2023
@micheles
Copy link
Contributor

micheles commented Feb 9, 2023

Unfortunaly characteristicFaultSources are not supported by the converter since they highly nontrivial and they require some discussion with the scientific team (what do we want to store and how we want to store it, how many surface types we want to convert and how). I agree that the error message should be improved.

@micheles
Copy link
Contributor

micheles commented Apr 23, 2024

Example file: char.xml.gz

$ oq nrml_to csv char.xml
NotImplementedError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants