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.
add_data_entry: Takes a date, animal id, and a list of measurements and adds the data into a row.
change_data_entry: Takes a date, animal id, and a list of measurements and changes an existing row.
get_data_for_date: Takes a date and returns a list of all data entries for that date
In addition, the methods get_values_for_date and update_selected_value in DataCollectionUI now properly use the new database functions.
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.