Currently Detection.id is a string made up of Template.name and Detection.time, but the default string format for UTCDateTime objects contains colons, which are not parsed by ObsPy when writing QuakeML files. The upshot of this is that, despite the event.resource_id of detected events being set to the Detection.id, if a catalog of detected events is written as QuakeML and read back in, that information is lost.
I would recommend that we change the string formatter for Detection.id so that it changes colons to dashes.
Currently
Detection.id
is a string made up ofTemplate.name
andDetection.time
, but the default string format forUTCDateTime
objects contains colons, which are not parsed by ObsPy when writing QuakeML files. The upshot of this is that, despite theevent.resource_id
of detected events being set to theDetection.id
, if a catalog of detected events is written as QuakeML and read back in, that information is lost.I would recommend that we change the string formatter for
Detection.id
so that it changes colons to dashes.This may require some warnings of compatibility?