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

Bug when loading losses layers #729

Open
CatalinaYepes opened this issue Apr 20, 2020 · 1 comment
Open

Bug when loading losses layers #729

CatalinaYepes opened this issue Apr 20, 2020 · 1 comment
Assignees
Labels

Comments

@CatalinaYepes
Copy link
Collaborator

When trying to load the Average Asset Losses from the Scenario Risk Demo, the following error appears

2020-04-20T16:36:01 WARNING Traceback (most recent call last): File "/Users/cyepes/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/svir/dialogs/load_output_as_layer_dialog.py", line 875, in accept self.load_from_npz() File "/Users/cyepes/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/svir/dialogs/load_losses_by_asset_as_layer_dialog.py", line 186, in load_from_npz loss_type=loss_type) File "/Users/cyepes/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/svir/dialogs/load_output_as_layer_dialog.py", line 492, in build_layer row_wkt_geom_types=row_wkt_geom_types) File "/Users/cyepes/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/svir/dialogs/load_losses_by_asset_as_layer_dialog.py", line 147, in read_npz_into_layer self.npz_file, rlz_or_stat, loss_type, taxonomy) File "/Users/cyepes/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/svir/dialogs/load_losses_by_asset_as_layer_dialog.py", line 201, in group_by_site loss_by_site[rec['lon'], rec['lat']] += rec[loss_type] ValueError: no field of name b'structural'

@ptormene
Copy link
Member

On my machine I can not reproduce this error. I will check on MacOS, to see if the behavior is different.

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

No branches or pull requests

2 participants