@ -8,6 +8,7 @@ __version__ = "0.0.1"
import pandas
import sartoriusb
import time
import sys
from collections import namedtuple
from datetime import datetime
@ -108,7 +109,9 @@ def gooey_progress_factory(settings):
for i in iterator:
print(f"measurement {i} of {total}")
yield i
sys.stdout.flush()
print(f"measurement {total} of {total}")
return gui_progress
@ -12,7 +12,7 @@ def settings_fixture():
interval = ParsedDuration(10, "s", 10)
directory = Path("/something/made/up")
yield Settings(duration, interval, directory, "usb")
yield Settings(duration, interval, directory, "usb", 31)
@pytest.fixture()