MCPcopy Index your code
hub / github.com/injetlee/Python / count_pm

Function count_pm

countPm.py:2–9  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

1# -*- coding:utf-8 -*-
2def count_pm(*args):
3 alist = list([round(i*2-8,2) for i in args]) #计算三种颗粒浓度
4 result = []
5 for pm in alist:
6 pm_abs = abs(pm)
7 result.append(generate_iso_code(pm_abs))
8 print (result)
9 return result
10
11def generate_iso_code(x):
12 pm_value = [0.01,0.02,0.04,0.08,0.16,0.32,0.64,1.3,2.5,5,10,20,40,80] #颗粒浓度

Callers 1

countPm.pyFile · 0.85

Calls 1

generate_iso_codeFunction · 0.85

Tested by

no test coverage detected