Commit e46c8c02 authored by Stef Smeets's avatar Stef Smeets
Browse files

Format code

parent 3e9c23cc
......@@ -7,9 +7,9 @@ from functools import wraps
import numpy as np
from instamatic import config
from instamatic.exceptions import exception_list
from instamatic.server.serializer import pickle_dumper as dumper
from instamatic.server.serializer import pickle_loader as loader
from instamatic.exceptions import exception_list
if config.settings.cam_use_shared_memory:
from multiprocessing import shared_memory
......@@ -43,10 +43,10 @@ class CamClient:
"""
def __init__(
self,
self,
name: str,
interface: str,
):
):
super().__init__()
self.name = name
......@@ -126,12 +126,12 @@ class CamClient:
response = self.s.recv(self._imagebufsize)
else:
response = self.s.recv(self._bufsize)
if response:
status, data = loader(response)
if self.use_shared_memory and acquiring_image:
data = self.get_data_from_shared_memory(**data)
data = self.get_data_from_shared_memory(**data)
if status == 200:
return data
......
......@@ -59,10 +59,10 @@ class CameraEMMENU:
"""
def __init__(
self,
drc_name: str = 'Diffraction',
self,
drc_name: str = 'Diffraction',
name: str = 'emmenu',
):
):
"""Initialize camera module."""
super().__init__()
......
......@@ -14,7 +14,7 @@ logger = logging.getLogger(__name__)
class CameraGatan2:
"""Connect to Digital Microsgraph using the SerialEM Plugin."""
def __init__(self, name: str="gatan2"):
def __init__(self, name: str = 'gatan2'):
"""Initialize camera module."""
super().__init__()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment