diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-19 01:37:10 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-19 01:37:10 +0100 |
commit | 9824b374b2a075304a17212179b568db581a9c1c (patch) | |
tree | b74e8ad5b0f5fdd08cb3dceef509a2bf82d2ce11 /examples | |
parent | m deps notes (diff) | |
download | blueshift-9824b374b2a075304a17212179b568db581a9c1c.tar.gz blueshift-9824b374b2a075304a17212179b568db581a9c1c.tar.bz2 blueshift-9824b374b2a075304a17212179b568db581a9c1c.tar.xz |
only parse times once
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/comprehensive | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/comprehensive b/examples/comprehensive index 653cd8b..e1c045e 100644 --- a/examples/comprehensive +++ b/examples/comprehensive @@ -18,6 +18,7 @@ def by_time(): ''' Dayness calculation using time ''' + global time_alpha if isinstance(time_alpha[0][0], str): for i in range(len(time_alpha)): hh = [float(x) for x in time_alpha[i][0].split(':')] |