Skip to content

Commit ceb7cd7

Browse files
authored
Remove direct publishes from SmartEM integration (#778)
Will replace with API calls when available
1 parent 490decb commit ceb7cd7

File tree

3 files changed

+0
-18
lines changed

3 files changed

+0
-18
lines changed

src/murfey/workflows/spa/ctf_estimation.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from smartem_backend.api_client import SmartEMAPIClient
1515
from smartem_backend.model.http_request import MicrographUpdateRequest
1616
from smartem_backend.model.http_response import MicrographResponse
17-
from smartem_backend.mq_publisher import publish_ctf_estimation_completed
1817
from smartem_common.entity_status import MicrographStatus
1918

2019
SMARTEM_ACTIVE = True
@@ -47,10 +46,6 @@ def ctf_estimated(message: dict, murfey_db: Session) -> dict[str, bool]:
4746
update,
4847
MicrographResponse,
4948
)
50-
publish_ctf_estimation_completed(
51-
micrograph_uuid=movie.smartem_uuid,
52-
ctf_max_res=message["ctf_max_resolution"],
53-
)
5449
except Exception:
5550
logger.warning(
5651
"Failed to emit CTF estimation complete event to smartem",

src/murfey/workflows/spa/motion_correction.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from smartem_backend.api_client import SmartEMAPIClient
1515
from smartem_backend.model.http_request import MicrographUpdateRequest
1616
from smartem_backend.model.http_response import MicrographResponse
17-
from smartem_backend.mq_publisher import publish_motion_correction_completed
1817
from smartem_common.entity_status import MicrographStatus
1918

2019
SMARTEM_ACTIVE = True
@@ -49,11 +48,6 @@ def motion_corrected(message: dict, murfey_db: Session) -> dict[str, bool]:
4948
update,
5049
MicrographResponse,
5150
)
52-
publish_motion_correction_completed(
53-
micrograph_uuid=movie.smartem_uuid,
54-
total_motion=message["total_motion"],
55-
average_motion=message["average_motion"],
56-
)
5751
except Exception:
5852
logger.warning(
5953
"Failed to emit motion correction complete event to smartem",

src/murfey/workflows/spa/picking.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
from smartem_backend.api_client import SmartEMAPIClient
3737
from smartem_backend.model.http_request import MicrographUpdateRequest
3838
from smartem_backend.model.http_response import MicrographResponse
39-
from smartem_backend.mq_publisher import publish_particle_picking_completed
4039
from smartem_common.entity_status import MicrographStatus
4140

4241
SMARTEM_ACTIVE = True
@@ -465,12 +464,6 @@ def particles_picked(message: dict, murfey_db: Session) -> dict[str, bool]:
465464
update,
466465
MicrographResponse,
467466
)
468-
publish_particle_picking_completed(
469-
micrograph_uuid=movie.smartem_uuid,
470-
number_of_particles_picked=len(
471-
message.get("particle_diameters", [])
472-
),
473-
)
474467
except Exception:
475468
logger.warning(
476469
"Failed to emit particle picking complete event to smartem",

0 commit comments

Comments
 (0)