def _phase_to_event(event_text):
ph_event = Event()<EOL>header = event_text['<STR_LIT>'].split()<EOL>ph_event.origins.append(Origin())<EOL>ph_event.origins[<NUM_LIT:0>].time =UTCDateTime(year=int(header[<NUM_LIT:1>]), month=int(header[<NUM_LIT:2>]),<EOL>day=int(header[<NUM_LIT:3>]), hour=int(header[<NUM_LIT:4>]),<EOL>minute=int(header[<NUM_LIT:5>]), second=int(header[<NUM_LIT:6>].split('<STR_LIT:.>')[<NUM_LIT:0>]),<EOL>microsecond=int(float(('<STR_LIT>' + header[<NUM_LIT:6>].split('<STR_LIT:.>')[<NUM_LIT:1>])) *<EOL><NUM_LIT>))<EOL>ph_event.origins[<NUM_LIT:0>].latitude = float(header[<NUM_LIT:7>])<EOL>ph_event.origins[<NUM_LIT:0>].longitude = float(header[<NUM_LIT:8>])<EOL>ph_event.origins[<NUM_LIT:0>].depth = float(header[<NUM_LIT:9>]) * <NUM_LIT:1000><EOL>ph_event.origins[<NUM_LIT:0>].quality = OriginQuality(<EOL>standard_error=float(header[<NUM_LIT>]))<EOL>ph_event.magnitudes.append(Magnitude())<EOL>ph_event.magnitudes[<NUM_LIT:0>].mag = float(header[<NUM_LIT:10>])<EOL>ph_event.magnitudes[<NUM_LIT:0>].magnitude_type = '<STR_LIT:M>'<EOL>for i, pick_line in enumerate(event_text['<STR_LIT>']):<EOL><INDENT>pick = pick_line.split()<EOL>_waveform_id = WaveformStreamID(station_code=pick[<NUM_LIT:0>])<EOL>pick_time = ph_event.origins[<NUM_LIT:0>].time + float(pick[<NUM_LIT:1>])<EOL>ph_event.picks.append(Pick(waveform_id=_waveform_id,<EOL>phase_hint=pick[<NUM_LIT:3>],<EOL>time=pick_time))<EOL>ph_event.origins[<NUM_LIT:0>].arrivals.append(Arrival(phase=ph_event.picks[i],<EOL>pick_id=ph_event.picks[i].<EOL>resource_id))<EOL>ph_event.origins[<NUM_LIT:0>].arrivals[i].time_weight = float(pick[<NUM_LIT:2>])<EOL><DEDENT>return ph_event<EOL>
Function to convert the text for one event in hypoDD phase format to \
event object.

:type event_text: dict
:param event_text: dict of two elements, header and picks, header is a \
    str, picks is a list of str.

:returns: obspy.core.event.Event