Removed some unused gevent imports

This commit is contained in:
Joel Collins 2020-07-02 23:41:28 +01:00
parent bbd64a8117
commit 489b81f34b
2 changed files with 1 additions and 4 deletions

View file

@ -10,7 +10,6 @@ import time
import numpy as np import numpy as np
from PIL import Image, ImageFont, ImageDraw from PIL import Image, ImageFont, ImageDraw
from datetime import datetime from datetime import datetime
import gevent
import logging import logging
@ -221,7 +220,7 @@ class MissingCamera(BaseCamera):
# While the iterator is not closed # While the iterator is not closed
try: try:
while True: while True:
gevent.sleep(1) # Only serve frames at 1fps time.sleep(1) # Only serve frames at 1fps
# Reset stream # Reset stream
self.stream.seek(0) self.stream.seek(0)
self.stream.truncate() self.stream.truncate()

View file

@ -8,8 +8,6 @@ import uuid
from typing import Tuple from typing import Tuple
from expiringdict import ExpiringDict from expiringdict import ExpiringDict
import gevent
from openflexure_microscope.captures import CaptureManager from openflexure_microscope.captures import CaptureManager
from openflexure_microscope.stage.mock import MissingStage from openflexure_microscope.stage.mock import MissingStage