Exemplo n.º 1
0
 def get_valid_data_for_experiment(self,
                                   experiment: Experiment) -> pd.DataFrame:
     pids = [
         wearable.get_pid() for wearable in experiment.get_all_wearables()
     ]
     return self.data[self.data.index.isin(pids)]
Exemplo n.º 2
0
    def add_to_experiment(self, experiment: Experiment) -> None:

        for wearable in experiment.get_all_wearables():
            self.add_to_wearable(wearable)