oss-slu / Mouser

GNU General Public License v3.0
1 stars 7 forks source link

Move data collection to the .mouser file #177

Closed aobermiller closed 8 months ago

aobermiller commented 8 months ago

Fixes #162

What was changed?

Any methods and classes that touch data collection are changed to work with the new table in the database.

Why was it changed?

Added a new table into the experiment_database file that's meant to store the collected data. Making a new experiment fully sets up this table to include all measurement items.

Data Collection UI now uses the data found in the database file for retrieving and writing data

How was it changed?

New table is created in the constructor of ExperimentDatabase called collected_data. This table starts with two columns, date and animal_id. Before this is can be used to collect data, the function setup_collected_data which takes a list of measurement items and creates a new column in the collected_data table for each measurement item.

There are two more new methods in ExperimentDatabase.

In addition, the methods get_values_for_date and update_selected_value in DataCollectionUI now properly use the new database functions.

loganwyas commented 8 months ago

@aobermiller What is the progress on this?