Skip to content

Commit 20e74de

Browse files
committed
Camera setup
1 parent 658f21d commit 20e74de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/murfey/util/tomo_metadata.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
from murfey.server import _transport_object
55
from murfey.server.api.auth import MurfeySessionIDInstrument as MurfeySessionID
6+
from murfey.server.gain import Camera
67
from murfey.util.config import get_machine_config
78
from murfey.util.db import DataCollectionGroup, SearchMap
89
from murfey.util.db import Session as MurfeySession
@@ -128,7 +129,9 @@ def register_search_map_in_database(
128129
)
129130
M_corrected = np.matmul(np.linalg.inv(M), R)
130131
vector_pixel = np.matmul(M_corrected, B)
131-
if machine_config.camera == "FALCON":
132+
133+
camera = getattr(Camera, machine_config.camera)
134+
if camera == Camera.FALCON:
132135
vector_pixel = np.matmul(np.array([[-1, 0], [0, -1]]), vector_pixel)
133136

134137
search_map_params.height_on_atlas = int(

0 commit comments

Comments
 (0)