Program to output the wearing time and other statistics of a Cambridge N99 | FFP2 mask.
Project description
Cambridge Masks Stats
Program to output the wearing time and other statistics of a Cambridge N99 | FFP2 mask.
the program is in the alpha phase. this means that the api will probably change often. when running it in the terminal, care is taken to maintain the syntax if possible. this description also only deals with the terminal. the api will be described in the documentation of the code, if this is necessary. it is tried to write the code in a way that it is easy to understand.
requirements
python version
Python >= 3.6
dependencies
numpy==1.21.1
pandas==1.3.1
python-dateutil==2.8.2
pytz==2021.1
six==1.16.0
pip installation (with dependencies)
pip install cambridge-mask-stats
csv file
the CSV file to import needs the following header:
date,id,model,aqi_level,minutes_worn
- date -> format yyyy-mm-dd
- id -> mask id. preferably consecutive numbering
- model -> mask model like 'The Churchill Pro'
- aqi_level -> from 1-5 according to the data in the manual (1 = aqi below 50, 2 = 50 - 100 ...)
- minutes_worn -> minutes worn on this date
execute
mask-stats <FILEPATH>
abbreviations in the output
- hrs -> hours
- pct -> percent | percentage
- mean_min_d -> mean minutes daily
- sum_min -> summary minutes
- sum_hrs -> summary hours
example
masks-stats /home/w01fdev/Documents/masks.csv
output
******************* StatsMasks *******************
worn | wear hrs pct
id model
1 The Admiral Pro 73 21.47
2 The Churchill Pro 235 69.12
******************* StatsDate ********************
worn | wear mean_min_d sum_min sum_hrs pct
2020-08-31 58 58 0 0.28
2020-09-30 9 278 4 1.36
2020-10-31 39 1237 20 6.06
2020-11-30 107 3235 53 15.86
2020-12-31 62 1940 32 9.51
2021-01-31 49 1520 25 7.45
2021-02-28 52 1478 24 7.25
2021-03-31 52 1618 26 7.93
2021-04-30 58 1749 29 8.57
2021-05-31 56 1750 29 8.58
2021-06-30 57 1715 28 8.41
2021-07-31 46 1446 24 7.09
2021-08-31 54 492 8 2.41
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for cambridge_mask_stats-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8f821d2f210e0e6dc4c6dcb500791fa4de2b97fc8b91590bdcacbd941ebd9f8 |
|
MD5 | 89e4a6e3a1a9cecc2974b8d793f13bf7 |
|
BLAKE2b-256 | 200ec803f42393f1d4ba3b28f75b18654deb3b525d2dbb6418223a54c32fc569 |