v0 = []
for i in range(50):
    v0.append(50)
for i in range(10):
    for j in range(70):
        v0.append(j + 50)
    for j in range(70):
        v0.append(120 - j)
for i in range(50):
    v0.append(50)

while (i < (len(v0))):
    x = v0[i]
    mms.append(x)
    psi0 = pressure.mmHg2psi(x)
    ps.append(psi0)
    #print(x)

    s = int(psi_to_steps(psi0))
    #print(s)
    i = i + 2
    ts.append(t)
    t = t + dt
    ys0.append(s)

for i in range(runs):
    for y in ys0:
        ys.append(y)
print(len(ys))
Exemplo n.º 2
0
from finger import Pressure
import time
import numpy as np
from matplotlib import pyplot as plt

pressure = Pressure()

psi = pressure.mmHg2psi(100.0)
mmHg = pressure.psi2mmHg(psi)

print(psi, mmHg)

print(pressure.psi2mmHg(14.456))
print(pressure.psi2mmHg(16.079))