|
2 | 2 | ABQ Data Entry Program specification |
3 | 3 | ====================================== |
4 | 4 |
|
5 | | - |
6 | 5 | Description |
7 | 6 | ----------- |
8 | | -The program is being created to minimize data entry errors for laboratory measurements. |
| 7 | +This program facilitates entry of laboratory observations |
| 8 | +into a CSV file. |
9 | 9 |
|
10 | | -Functionality Required |
11 | | ----------------------- |
| 10 | +Requirements |
| 11 | +------------ |
12 | 12 |
|
13 | | -The program must: |
| 13 | +Functional Requirements: |
14 | 14 |
|
15 | | -* allow all relevant, valid data to be entered, as per the field chart |
16 | | -* append entered data to a CSV file |
17 | | - - The CSV file must have a filename of abq_data_record_CURRENTDATE.csv, |
18 | | - where CURRENTDATE is the date of the checks in ISO format (Year-month-day) |
19 | | - - The CSV file must have all the fields as per the chart |
20 | | -* enforce correct datatypes per field |
21 | | -* have inputs that: |
| 15 | + * Allow all relevant, valid data to be entered, |
| 16 | + as per the data dictionary. |
| 17 | + * Append entered data to a CSV file: |
| 18 | + - The CSV file must have a filename of |
| 19 | + abq_data_record_CURRENTDATE.csv, where CURRENTDATE is the date |
| 20 | + of the laboratory observations in ISO format (Year-month-day). |
| 21 | + - The CSV file must include all fields. |
| 22 | + listed in the data dictionary. |
| 23 | + - The CSV headers will avoid cryptic abbreviations. |
| 24 | + * Enforce correct datatypes per field. |
| 25 | + * have inputs that: |
22 | 26 | - ignore meaningless keystrokes |
23 | 27 | - display an error if the value is invalid on focusout |
24 | 28 | - display an error if a required field is empty on focusout |
25 | | -* prevent saving the record when errors are present |
| 29 | + * prevent saving the record when errors are present |
26 | 30 |
|
27 | | -The program should try, whenever possible, to: |
| 31 | +Non-functional Requirements: |
28 | 32 |
|
29 | | -* enforce reasonable limits on data entered |
30 | | -* Auto-fill data |
31 | | -* Suggest likely correct values |
32 | | -* Provide a smooth and efficient workflow |
| 33 | + * Enforce reasonable limits on data entered, per the data dict. |
| 34 | + * Auto-fill data to save time. |
| 35 | + * Suggest likely correct values. |
| 36 | + * Provide a smooth and efficient workflow. |
| 37 | + * Store data in a format easily understandable by Python. |
33 | 38 |
|
34 | 39 | Functionality Not Required |
35 | 40 | -------------------------- |
36 | 41 |
|
37 | 42 | The program does not need to: |
38 | 43 |
|
39 | | -* Allow editing of data. This can be done in LibreOffice if necessary. |
40 | | -* Allow deletion of data. |
| 44 | + * Allow editing of data. |
| 45 | + * Allow deletion of data. |
| 46 | + |
| 47 | +Users can perform both actions in LibreOffice if needed. |
| 48 | + |
41 | 49 |
|
42 | 50 | Limitations |
43 | 51 | ----------- |
44 | 52 |
|
45 | 53 | The program must: |
46 | 54 |
|
47 | | -* Be efficiently operable by keyboard-only users. |
48 | | -* Be accessible to color blind users. |
49 | | -* Run on Debian Linux. |
50 | | -* Run acceptably on a low-end PC. |
| 55 | + * Be efficiently operable by keyboard-only users. |
| 56 | + * Be accessible to color blind users. |
| 57 | + * Run on Debian GNU/Linux. |
| 58 | + * Run acceptably on a low-end PC. |
51 | 59 |
|
52 | 60 | Data Dictionary |
53 | 61 | --------------- |
54 | | -+------------+----------+------+------------------+--------------------------+ |
55 | | -|Field | Datatype | Units| Range |Descripton | |
56 | | -+============+==========+======+==================+==========================+ |
57 | | -|Date |Date | | |Date of record | |
58 | | -+------------+----------+------+------------------+--------------------------+ |
59 | | -|Time |Time | |8:00, 12:00, |Time period | |
60 | | -| | | |16:00, or 20:00 | | |
61 | | -+------------+----------+------+------------------+--------------------------+ |
62 | | -|Lab |String | | A - C |Lab ID | |
63 | | -+------------+----------+------+------------------+--------------------------+ |
64 | | -|Technician |String | | |Technician name | |
65 | | -+------------+----------+------+------------------+--------------------------+ |
66 | | -|Plot |Int | | 1 - 20 |Plot ID | |
67 | | -+------------+----------+------+------------------+--------------------------+ |
68 | | -|Seed |String | | |Seed sample ID | |
69 | | -|sample | | | | | |
70 | | -+------------+----------+------+------------------+--------------------------+ |
71 | | -|Fault |Bool | | |Fault on environmental | |
72 | | -| | | | |sensor | |
73 | | -+------------+----------+------+------------------+--------------------------+ |
74 | | -|Light |Decimal |klx | 0 - 100 |Light at plot | |
75 | | -+------------+----------+------+------------------+--------------------------+ |
76 | | -|Humidity |Decimal |g/m³ | 0.5 - 52.0 |Abs humidity at plot | |
77 | | -+------------+----------+------+------------------+--------------------------+ |
78 | | -|Temperature |Decimal |°C | 4 - 40 |Temperature at plot | |
79 | | -+------------+----------+------+------------------+--------------------------+ |
80 | | -|Blossoms |Int | | 0 - 1000 |Number of blossoms in plot| |
81 | | -+------------+----------+------+------------------+--------------------------+ |
82 | | -|Fruit |Int | | 0 - 1000 |Number of fruits in plot | |
83 | | -+------------+----------+------+------------------+--------------------------+ |
84 | | -|Plants |Int | | 0 - 20 |Number of plants in plot | |
85 | | -+------------+----------+------+------------------+--------------------------+ |
86 | | -|Max height |Decimal |cm | 0 - 1000 |Height of tallest plant in| |
87 | | -| | | | |plot | |
88 | | -+------------+----------+------+------------------+--------------------------+ |
89 | | -|Min height |Decimal |cm | 0 - 1000 |Height of shortest plant | |
90 | | -| | | | |in plot | |
91 | | -+------------+----------+------+------------------+--------------------------+ |
92 | | -|Median |Decimal |cm | 0 - 1000 |Median height of plants in| |
93 | | -|height | | | |plot | |
94 | | -+------------+----------+------+------------------+--------------------------+ |
95 | | -|Notes |String | | |Miscellaneous notes | |
96 | | -+------------+----------+------+------------------+--------------------------+ |
| 62 | ++------------+--------+----+---------------+--------------------+ |
| 63 | +|Field | Type |Unit| Valid Values |Description | |
| 64 | ++============+========+====+===============+====================+ |
| 65 | +|Date |Date | | |Date of record | |
| 66 | ++------------+--------+----+---------------+--------------------+ |
| 67 | +|Time |Time | |8:00, 12:00, |Time period | |
| 68 | +| | | |16:00, or 20:00| | |
| 69 | ++------------+--------+----+---------------+--------------------+ |
| 70 | +|Lab |String | | A - C |Lab ID | |
| 71 | ++------------+--------+----+---------------+--------------------+ |
| 72 | +|Technician |String | | |Technician name | |
| 73 | ++------------+--------+----+---------------+--------------------+ |
| 74 | +|Plot |Int | | 1 - 20 |Plot ID | |
| 75 | ++------------+--------+----+---------------+--------------------+ |
| 76 | +|Seed |String | | 6-character |Seed sample ID | |
| 77 | +|Sample | | | string | | |
| 78 | ++------------+--------+----+---------------+--------------------+ |
| 79 | +|Fault |Bool | | True, False |Environmental | |
| 80 | +| | | | |sensor fault | |
| 81 | ++------------+--------+----+---------------+--------------------+ |
| 82 | +|Light |Decimal |klx | 0 - 100 |Light at plot | |
| 83 | +| | | | |blank on fault | |
| 84 | ++------------+--------+----+---------------+--------------------+ |
| 85 | +|Humidity |Decimal |g/m³| 0.5 - 52.0 |Abs humidity at plot| |
| 86 | +| | | | |blank on fault | |
| 87 | ++------------+--------+----+---------------+--------------------+ |
| 88 | +|Temperature |Decimal |°C | 4 - 40 |Temperature at plot | |
| 89 | +| | | | |blank on fault | |
| 90 | ++------------+--------+----+---------------+--------------------+ |
| 91 | +|Blossoms |Int | | 0 - 1000 |No. blossoms in plot| |
| 92 | ++------------+--------+----+---------------+--------------------+ |
| 93 | +|Fruit |Int | | 0 - 1000 |No. fruits in plot | |
| 94 | ++------------+--------+----+---------------+--------------------+ |
| 95 | +|Plants |Int | | 0 - 20 |No. plants in plot | |
| 96 | ++------------+--------+----+---------------+--------------------+ |
| 97 | +|Max height |Decimal |cm | 0 - 1000 |Height of tallest | |
| 98 | +| | | | |plant in plot | |
| 99 | ++------------+--------+----+---------------+--------------------+ |
| 100 | +|Min height |Decimal |cm | 0 - 1000 |Height of shortest | |
| 101 | +| | | | |plant in plot | |
| 102 | ++------------+--------+----+---------------+--------------------+ |
| 103 | +|Median |Decimal |cm | 0 - 1000 |Median height of | |
| 104 | +|height | | | |plants in plot | |
| 105 | ++------------+--------+----+---------------+--------------------+ |
| 106 | +|Notes |String | | |Miscellaneous notes | |
| 107 | ++------------+--------+----+---------------+--------------------+ |
0 commit comments