Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamp returned by InaSAFE crashes the keyword parser #13

Open
vdeparday opened this issue Sep 30, 2013 · 0 comments
Open

Timestamp returned by InaSAFE crashes the keyword parser #13

vdeparday opened this issue Sep 30, 2013 · 0 comments

Comments

@vdeparday
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant