Created
April 19, 2012 17:01
-
-
Save fumingshih/2422311 to your computer and use it in GitHub Desktop.
test2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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