Skip to content

Commit

Permalink
Make sure that event coordinates in the output YAML file are numeric.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodsf committed Sep 4, 2023
1 parent 9fe11df commit 00a6baa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sourcespec/ssp_inversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ def spectral_inversion(config, spec_st, weight_st):
sspec_output.event_info.event_id = event.event_id
if event.name is not None:
sspec_output.event_info.event_name = event.name
sspec_output.event_info.longitude = event.hypocenter.longitude
sspec_output.event_info.latitude = event.hypocenter.latitude
sspec_output.event_info.longitude = event.hypocenter.longitude.value_in_deg
sspec_output.event_info.latitude = event.hypocenter.latitude.value_in_deg
sspec_output.event_info.depth_in_km = event.hypocenter.depth.value_in_km
sspec_output.event_info.origin_time = event.hypocenter.origin_time
sspec_output.event_info.vp_in_km_s = event.hypocenter.vp
Expand Down

0 comments on commit 00a6baa

Please sign in to comment.