Skip to content

Commit

Permalink
Fix loader for ruptures
Browse files Browse the repository at this point in the history
  • Loading branch information
ptormene committed May 9, 2024
1 parent ca3f8f8 commit f177b54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion svir/dialogs/load_ruptures_as_layer_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ def get_field_types(self, **kwargs):
return field_types

def load_from_npz(self):
boundaries = gzip.decompress(self.npz_file['boundaries']).split(b'\n')
boundaries = gzip.decompress(
bytes(self.npz_file['boundaries'])).split(b'\n')
row_wkt_geom_types = {
row_idx: QgsGeometry.fromWkt(boundary.decode('utf8')).wkbType()
for row_idx, boundary in enumerate(boundaries)}
Expand Down

0 comments on commit f177b54

Please sign in to comment.