-
Notifications
You must be signed in to change notification settings - Fork 0
/
Volumetric Glassware.py
89 lines (80 loc) · 2.21 KB
/
Volumetric Glassware.py
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
"""Work in Progress
Classes intended to encapsulate critical attributes of laboratory glassware, to be made
portable to other scripts and applications which require these elements for computation"""
class GDC:
def __init__(self, volume, style):
self.volume = volume
#TODO error function based on style
self.volumetric_error = error_dict(volume)
# absolute error (mL) - per ASTM E1272-02
# class A glassware as defined, class B glassware is 2x indicated
class_a_error = {
'5': 0.05,
'10': 0.02,
'20': 0.1,
'25': 0.17,
'50': 0.25,
'100': 0.50,
'250': 1.00,
'500': 2.00,
'1000': 3.00,
'2000': 6.00,
'4000': 14.50,
}
class VF:
def __init__(self, volume, style, mouth):
self.volume = volume
#TODO error function based on style
self.volumetric_error = error_dict(volume)
# absolute error (mL) - per ASTM E288-10
# class A glassware as defined, class B glassware is 2x indicated
class_a_error = {
'5': 0.02,
'10': 0.02,
'20': 0.0.03,
'50': 0.0.05,
'100': 0.50,
'250': 1.00,
'500': 2.00,
'1000': 3.00,
'2000': 6.00,
'4000': 14.50,
}
widemouth_class_a_error = {
'5': 0.05,
'10': 0.02,
'25': 0.17,
'50': 0.25,
'100': 0.50,
'250': 1.00,
}
class VP:
def __init__(self, volume, style):
self.volume = volume
#TODO error function based on style
self.volumetric_error = error_dict(volume)
# absolute error (mL) - per ASTM E969-02
# class A glassware as defined, class B glassware is 2x indicated
# NOTE - no class B for 30, 40
class_a_error = {
'0.5': 0.006,
'1.0': 0.006,
'2': 0.0.006,
'3': 0.01,
'4': 0.01,
'5': 0.01,
'6': 0.01,
'7': 0.01,
'8': 0.02,
'9': 0.02,
'10': 0.02,
'15': 0.03,
'20': 0.03,
'25': 0.03,
'30': 0.03,
'40': 0.05,
'50': 0.05,
'100': 0.08
}
class errorComputer:
def __init__(self, thingy)