comparison python/ubc_utils.py @ 274:ea2a8e8e4e77 v0.1

corrected bug from moving interaction classes
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 19 Nov 2012 18:12:45 -0500
parents 41a5853ec495
children fa95796a76b3
comparison
equal deleted inserted replaced
273:e4d232f9fc39 274:ea2a8e8e4e77
169 return featureNumbers 169 return featureNumbers
170 170
171 def loadInteractions(filename, nInteractions = -1): 171 def loadInteractions(filename, nInteractions = -1):
172 'Loads interactions from the old UBC traffic event format' 172 'Loads interactions from the old UBC traffic event format'
173 from event import Interaction 173 from event import Interaction
174 from moving import SeverityIndicator 174 from indicators import SeverityIndicator
175 file = utils.openCheck(filename) 175 file = utils.openCheck(filename)
176 if (not file): 176 if (not file):
177 return [] 177 return []
178 178
179 interactions = [] 179 interactions = []