Skip to content

Timestamp returned by InaSAFE crashes the keyword parser #13

@vdeparday

Description

@vdeparday

InaSAFE returns a timestamp (see https://github.com/AIFDR/inasafe/blob/master/safe/engine/core.py#L99) and this timestamp has colon that are crashing the keyword parser.

As a workaround I commented this out locally in my InaSAFE package:

--- a/safe/engine/core.py
+++ b/safe/engine/core.py
@@ -96,7 +96,7 @@ def calculate_impact(layers, impact_fcn):
         F.keywords['%s_source' % cat] = source

    F.keywords['elapsed_time'] = elapsed_time_sec
-    F.keywords['time_stamp'] = time_stamp[:19]  # remove decimal part
+   #F.keywords['time_stamp'] = time_stamp[:19]  # remove decimal part
     F.keywords['host_name'] = host_name
     F.keywords['user'] = user

but it should be handled directly in safe-geonode

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions