def get_list_impact_concentration_manual_logs(self,manual_log_list,mindwave_data):
        activities,manual_log_testpersoon_B = Manual_log.get_manual_logfile_Testpersoon_B_enkel_programmas_websites()
        datetime_from = manual_log_testpersoon_B[0][0]
        datetime_to = manual_log_testpersoon_B[len(manual_log_testpersoon_B) - 1][1]

        mindwave_data_list = Mindwave_data_processing.get_mindwave_data_filtered_smoothed(datetime_from,datetime_to,10)

        result_x, result_y =  self.get_list_concentration_differences_manual_log(manual_log_testpersoon_B,mindwave_data_list)


        return result_x, result_y
    def get_barchart_manual_log_testpersoon_A_only_programs_websites(self):
        visualisationGenerator = Visualisation_generator.Visualisations('')

        activities, manual_log_testpersoon_A = Manual_log.get_manual_logfile_testpersoon_A_enkel_programmas_websites(
        )
        datetime_from = manual_log_testpersoon_A[0][0]
        datetime_to = manual_log_testpersoon_A[len(manual_log_testpersoon_A) -
                                               1][1]

        mindwave_data = visualisationGenerator.get_mindwave_data(
            datetime_from, datetime_to, visualisationGenerator.window_other)
        visualisationGenerator.generate_bar_chart_activities_manual_log(
            "manual log visualised testpersoon_A activities only",
            mindwave_data, manual_log_testpersoon_A)
    def get_barchart_manual_log_testpersoon_B_only_programs_websites_avg(self):
        visualisationGenerator = Visualisation_generator.Visualisations('')

        activities, manual_log_testpersoon_B = Manual_log.get_manual_logfile_Testpersoon_B_enkel_programmas_websites(
        )
        datetime_from = manual_log_testpersoon_B[0][0]
        datetime_to = manual_log_testpersoon_B[len(manual_log_testpersoon_B) -
                                               1][1]

        mindwave_data = visualisationGenerator.get_mindwave_data_avg_per_manualLog_interval(
            manual_log_testpersoon_B)
        visualisationGenerator.generate_bar_chart_activities_manual_log(
            "manual log visualised testpersoon_B programs/websites only avg",
            mindwave_data, manual_log_testpersoon_B)
    def get_barchart_manual_log_testpersoon_A(self):
        visualisationGenerator = Visualisation_generator.Visualisations('')

        activities, manual_log_testpersoon_A = Manual_log.get_manual_logfile_testpersoon_A(
        )
        datetime_from = manual_log_testpersoon_A[0][0]
        datetime_to = manual_log_testpersoon_A[len(manual_log_testpersoon_A) -
                                               1][1]

        mindwave_data = visualisationGenerator.get_mindwave_data(
            datetime_from, datetime_to, self.window_other)
        visualisationGenerator.generate_bar_chart_activities_manual_log(
            "manual log visualised testpersoon_A", mindwave_data,
            manual_log_testpersoon_A)
    def get_barchart_manual_log_testpersoon_B(self):
        visualisationGenerator = Visualisation_generator.Visualisations('')

        activities, manual_log_testpersoon_B = Manual_log.get_manual_logfile_Testpersoon_B_bugs_verwijderd(
        )
        datetime_from = manual_log_testpersoon_B[0][0]
        datetime_to = manual_log_testpersoon_B[len(manual_log_testpersoon_B) -
                                               1][1]

        mindwave_data = visualisationGenerator.get_mindwave_data(
            datetime_from, datetime_to, visualisationGenerator.window_other)
        visualisationGenerator.generate_bar_chart_activities_manual_log(
            "manual log visualised testpersoon_B", mindwave_data,
            manual_log_testpersoon_B)
    def get_barchart_manual_log_testpersoon_A_userstates_avg(self):
        visualisationGenerator = Visualisation_generator.Visualisations('')

        activities, manual_log_testpersoon_A = Manual_log.get_manual_logfile_userstates_testpersoon_A(
        )
        datetime_from = manual_log_testpersoon_A[0][0]
        datetime_to = manual_log_testpersoon_A[len(manual_log_testpersoon_A) -
                                               1][1]

        mindwave_data = visualisationGenerator.get_mindwave_data_avg_per_manualLog_interval(
            manual_log_testpersoon_A)
        #mindwave_data = visualisationGenerator.get_mindwave_data_raw(datetime_from, datetime_to)
        visualisationGenerator.generate_bar_chart_activities_manual_log(
            "manual log visualised testpersoon_A userstates avg",
            mindwave_data, manual_log_testpersoon_A)
    def get_barchart_manual_log_testpersoon_B_avg(self):
        visualisationGenerator = Visualisation_generator.Visualisations('')

        activities, manual_log_testpersoon_B = Manual_log.get_manual_logfile_Testpersoon_B_bugs_verwijderd(
        )
        datetime_from = manual_log_testpersoon_B[0][0]
        datetime_to = manual_log_testpersoon_B[len(manual_log_testpersoon_B) -
                                               1][1]

        mindwave_data = visualisationGenerator.get_mindwave_data_avg_per_manualLog_interval(
            manual_log_testpersoon_B)
        #mindwave_data = visualisationGenerator.get_mindwave_data_raw(datetime_from, datetime_to)
        visualisationGenerator.generate_bar_chart_activities_manual_log(
            "manual log visualised testpersoon_B avg", mindwave_data,
            manual_log_testpersoon_B)
    def get_barchart_manual_log_testpersoon_C_session_2(self):
        visualisationGenerator = Visualisation_generator.Visualisations('')

        activities, manual_log_testpersoon_C = Manual_log.get_manual_logfile_testpersoon_C_session_2(
        )
        datetime_from = manual_log_testpersoon_C[0][0]
        datetime_to = manual_log_testpersoon_C[len(manual_log_testpersoon_C) -
                                               1][1]

        mindwave_data = visualisationGenerator.get_mindwave_data(
            datetime_from, datetime_to, visualisationGenerator.window_other)
        #mindwave_data = visualisationGenerator.get_mindwave_data_raw(datetime_from, datetime_to)
        visualisationGenerator.generate_bar_chart_activities_manual_log(
            "manual log visualised testpersoon_C session 2", mindwave_data,
            manual_log_testpersoon_C)
    def get_barchart_manual_log_testpersoon_D_userstates(self):
        visualisationGenerator = Visualisation_generator.Visualisations('')

        activities, manual_log_testpersoon_D = Manual_log.get_manual_log_testpersoon_D_userstates(
        )
        #manual_log_testpersoon_D = manual_log.get_manual_logfile_per_column(manual_log_testpersoon_D,3)
        datetime_from = manual_log_testpersoon_D[0][0]
        datetime_to = manual_log_testpersoon_D[len(manual_log_testpersoon_D) -
                                               1][1]

        mindwave_data = visualisationGenerator.get_mindwave_data(
            datetime_from, datetime_to, visualisationGenerator.window_other)
        #mindwave_data = visualisationGenerator.get_mindwave_data_raw(datetime_from, datetime_to)
        visualisationGenerator.generate_bar_chart_activities_manual_log(
            "manual log programs with extra info visualised testpersoon_D",
            mindwave_data, manual_log_testpersoon_D)
 def get_list_log_testpersoon_B(self):
     session_id = 41
     datetime_from, datetime_to = self.dasession.get_dates_session(
         session_id)
     activities, result_list = Manual_log.get_manual_logfile_Testpersoon_B()
     print activities
     for item in activities:
         selected_activity = item
         attention_data, x, y_attention, y_meditation, y_selectedActivity = self.get_mindwave_manual_logged_activities_data(
             datetime_from, datetime_to, result_list, selected_activity)
         title = "session_ID: " + str(
             session_id
         ) + "mindwave data manual logged for activity: " + str(
             selected_activity)
         self.plot_data(attention_data, x, y_attention, y_meditation,
                        y_selectedActivity, None, None, title)
         #plt.figure(figsize=(8, 6))
         figure = plt.gcf()  # get current figure
         figure.set_size_inches(40, 30)
         plt.savefig(str('test_images/' + selected_activity + ".png"))
Beispiel #11
0
 def test_manual_log_testpersoon_E(self):
     activities, manual_log_testpersoon_E = Manual_log.get_manual_logfile_testpersoon_E(
     )
     self.manual_logTest(manual_log_testpersoon_E)
Beispiel #12
0
 def test_manual_log_testpersoon_B(self):
     activities, manual_log_testpersoon_B = Manual_log.get_manual_logfile_Testpersoon_B_bugs_verwijderd(
     )
     self.manual_logTest(manual_log_testpersoon_B)
 def test_manual_log_testpersoon_D(self):
     activities,manual_log_testpersoon_D = Manual_log.get_manual_log_testpersoon_D()
     self.manual_logTest(manual_log_testpersoon_D)
 def test_manual_log_testpersoon_C_session_2(self):
     activities,manual_log_testpersoon_C_1 = Manual_log.get_manual_logfile_testpersoon_C_session_2()
     self.manual_logTest(manual_log_testpersoon_C_1)
 def test_manual_log_testpersoon_A_userstates(self):
     activities,manual_log_testpersoon_A = Manual_log.get_manual_logfile_userstates_testpersoon_A()
     self.manual_logTest(manual_log_testpersoon_A)
 def test_manual_log_testpersoon_A_programs_websites(self):
     activities,manual_log_testpersoon_A = Manual_log.get_manual_logfile_testpersoon_A_enkel_programmas_websites()
     self.manual_logTest(manual_log_testpersoon_A)
Beispiel #17
0
 def test_manual_log_testpersoon_C_session_2(self):
     activities, manual_log_testpersoon_C_1 = Manual_log.get_manual_logfile_testpersoon_C_session_2(
     )
     self.manual_logTest(manual_log_testpersoon_C_1)
Beispiel #18
0
 def test_manual_log_testpersoon_A_programs_websites(self):
     activities, manual_log_testpersoon_A = Manual_log.get_manual_logfile_testpersoon_A_enkel_programmas_websites(
     )
     self.manual_logTest(manual_log_testpersoon_A)
Beispiel #19
0
 def test_manual_log_testpersoon_A_userstates(self):
     activities, manual_log_testpersoon_A = Manual_log.get_manual_logfile_userstates_testpersoon_A(
     )
     self.manual_logTest(manual_log_testpersoon_A)
 def test_manual_log_testpersoon_B(self):
     activities,manual_log_testpersoon_B = Manual_log.get_manual_logfile_Testpersoon_B_bugs_verwijderd()
     self.manual_logTest(manual_log_testpersoon_B)
Beispiel #21
0
 def test_manual_log_testpersoon_D(self):
     activities, manual_log_testpersoon_D = Manual_log.get_manual_log_testpersoon_D(
     )
     self.manual_logTest(manual_log_testpersoon_D)
 def test_manual_log_testpersoon_E(self):
     activities,manual_log_testpersoon_E = Manual_log.get_manual_logfile_testpersoon_E()
     self.manual_logTest(manual_log_testpersoon_E)