Skip to content

Commit

Permalink
Merge pull request #10086 from gem/fix-extract-ruptures
Browse files Browse the repository at this point in the history
Fix type of source_id in extract_rupture_info
  • Loading branch information
micheles authored Oct 24, 2024
2 parents 51cb5af + 705ec01 commit eaa58df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openquake/calculators/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ def extract_rupture_info(dstore, what):
source_id = dstore['source_info']['source_id']
except KeyError: # scenario
source_id = None
dtlist = [('rup_id', I64), ('source_id', hdf5.vstr), ('multiplicity', U32),
dtlist = [('rup_id', I64), ('source_id', '<S75'), ('multiplicity', U32),
('mag', F32), ('centroid_lon', F32), ('centroid_lat', F32),
('centroid_depth', F32), ('trt', '<S50'),
('strike', F32), ('dip', F32), ('rake', F32)]
Expand Down

0 comments on commit eaa58df

Please sign in to comment.