DAQ: updated LC operation scripts
This commit is contained in:
@@ -85,7 +85,7 @@ class LoopCenteringAnalyzer:
|
||||
if target_point is None:
|
||||
return None
|
||||
|
||||
geom = self.ctx.sample_geometry_provider()
|
||||
geom = self.ctx.runtime.sample_geometry
|
||||
return SmargonCoordinate(
|
||||
sh_mm=geom.picture_to_smargon(Coordinate(x=target_point[0], y=target_point[1]))
|
||||
)
|
||||
@@ -117,7 +117,7 @@ class LoopCenteringAnalyzer:
|
||||
x2 = best_box.box.bottom_x
|
||||
y2 = best_box.box.bottom_y
|
||||
|
||||
geom = self.ctx.sample_geometry_provider()
|
||||
geom = self.ctx.runtime.sample_geometry
|
||||
|
||||
if cls == MLBoxType.LOOP_ALL.value:
|
||||
if y1 + y2 <= x1 + x2:
|
||||
@@ -157,7 +157,7 @@ class LoopCenteringAnalyzer:
|
||||
zoom_value: float,
|
||||
sample_id: int | None,
|
||||
) -> AngleAnalysis:
|
||||
prediction_result = self.ctx.get_predictions()
|
||||
prediction_result = self.ctx.prediction_provider.get_predictions()
|
||||
log_ml_bundle_meta(
|
||||
self.logger,
|
||||
f"loop_center_angle_{angle_deg}_zoom_{zoom_value:.0f}",
|
||||
|
||||
Reference in New Issue
Block a user