Skip to content

Instantly share code, notes, and snippets.

@fumingshih
Created April 19, 2012 17:01
Show Gist options
  • Save fumingshih/2422311 to your computer and use it in GitHub Desktop.
Save fumingshih/2422311 to your computer and use it in GitHub Desktop.
test2
def get_loc_data(self):
return [x for x in self.numeric_lst if x[9] == 0]
def get_sit_data(self):
return [x for x in self.numeric_lst if x[9] == 1]
def get_bluetooth_data(self):
return [x for x in self.numeric_lst if x[9] == 2]
def get_location(self, idx):
return self.name_map['loc'][idx]
def get_situation(self, idx):
return self.name_map['sit'][idx]
def get_developer(self, idx):
return self.name_map['developer'][idx]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment