-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
66 lines (57 loc) · 1.83 KB
/
README.txt
File metadata and controls
66 lines (57 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
BioSensor Project
This project was undertaken as part of the MSc BIO00052M Data Analysis and Programming
in the Biosciences module.
To run the project, run the GUI.py code. If running on anaconda, comment out the sensor parts
Dependancies:
- python 3 or greater
- picamera
- matplotlib
- Python Imaging Library
- tsl2591
- Adafruit_CharLCD
Objectives for the project:
- have a graphical user interface
- to be able to export the data
- to be able to see the max peak of the data
- to produce a graph of the sensor values
- to have a self check
- to be able to see if the sample is positive
- to use a digital like sensor
- be simple to use
example code:
#Previous (This has been kept to show the progression of code):
# #calculate means of data
# number_data_points = len(data)
# mean_1 = total_1/number_data_points
# mean_2 = total_2/number_data_points
# mean_3 = total_3/number_data_points
#
# # mean of data * time taken ----> gives overall light emitted
# overall_light_1 = mean_1 * time_elapsed
# overall_light_2 = mean_2 * time_elapsed
# overall_light_3 = mean_3 * time_elapsed
#
# # multiply by purity coefficient (determined using standards) to give purity
# purity_1 = overall_light_1 * purity_coefficient
# purity_2 = overall_light_2 * purity_coefficient
# purity_3 = overall_light_3 * purity_coefficient
#
# print(purity_1)
# print(purity_2)
# print(purity_3)
#
# return(purity_1, purity_2, purity_3)
#
# Previously:
# Working progress. Converts peak fluorescence recorded into
# a sample purity percentage.
#
# #recorded/peak fluorescence
# x = 10.0
#
# #max/100% fluorescence
# y = 12.0
#
# purity = (x*y)/100
#
# return(purity)