Skip to content

Commit

Permalink
Fix type of source_id in extract_rupture_info
Browse files Browse the repository at this point in the history
  • Loading branch information
ptormene committed Oct 24, 2024
1 parent 51cb5af commit 705ec01
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 705ec01

Please sign in to comment.