parameters: (self, ind, ids_person=None)
return_statement: return ids_person_activity, ids_activity_from, ids_activity_to
docstring: Returns person IDs and from/to activity IDs for persons who perform an activity
          at the given activity index ind.
          Returns arrays: ids_person, ids_activity_from, ids_activity_to
  
          ind: index of activity in activity pattern, starting with 0
          ids_person: array of preselected person IDs
docstring_summary: Returns person IDs and from/to activity IDs for persons who perform an activity
          at the given activity index ind.
          Returns arrays: ids_person, ids_activity_from, ids_activity_to
docstring_tokens: Returns person IDs and from / to activity IDs for persons who perform an activity at the given activity index ind . Returns arrays : ids_person ids_activity_from ids_activity_to
function: def get_activities_from_pattern(self, ind, ids_person=None):
          """
          Returns person IDs and from/to activity IDs for persons who perform an activity
          at the given activity index ind.
          Returns arrays: ids_person, ids_activity_from, ids_activity_to
  
          ind: index of activity in activity pattern, starting with 0
          ids_person: array of preselected person IDs
  
  
          """
  
          ids_person_activity = []
          ids_activity_from = []
          ids_activity_to = []
          if ids_person is None:
              ids_person = self.get_ids()
  
          for id_person, activitypattern in zip(ids_person, self.activitypatterns[ids_person]):
              # has person activity at index ind?
              if len(activitypattern) > ind+1:
                  ids_person_activity.append(id_person)
                  ids_activity_from.append(activitypattern[ind])
                  ids_activity_to.append(activitypattern[ind+1])
  
          return ids_person_activity, ids_activity_from, ids_activity_to
function_tokens: def get_activities_from_pattern ( self , ind , ids_person = None ) : ids_person_activity = [ ] ids_activity_from = [ ] ids_activity_to = [ ] if ids_person is None : ids_person = self . get_ids ( ) for id_person , activitypattern in zip ( ids_person , self . activitypatterns [ ids_person ] ) : # has person activity at index ind? if len ( activitypattern ) > ind + 1 : ids_person_activity . append ( id_person ) ids_activity_from . append ( activitypattern [ ind ] ) ids_activity_to . append ( activitypattern [ ind + 1 ] ) return ids_person_activity , ids_activity_from , ids_activity_to