aarelf_infer - beam is not setup yet
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import cv2
|
||||
import numpy as np
|
||||
from aarelcinfer_client import Client, AuthenticatedClient
|
||||
from aarelcinfer_client.api import config, predictions
|
||||
from aarelcinfer_client.api import config, predictions#, beam
|
||||
from aarelcinfer_client.models import RuntimeConfigPatchModel, LatestPredictionModel
|
||||
import io
|
||||
from PIL import Image
|
||||
@@ -32,6 +32,7 @@ class AareLCInferWrapper:
|
||||
self._host = host
|
||||
self._api_config = config
|
||||
self._api_predictions = predictions
|
||||
#self._api_beam = beam
|
||||
|
||||
def get_config(self) -> config.ConfigSnapshotResponse:
|
||||
return self._api_config.get_config(self.client)
|
||||
@@ -48,6 +49,9 @@ class AareLCInferWrapper:
|
||||
def get_latest_prediction_bundle(self):
|
||||
return self._api_predictions.get_latest_prediction_bundle(self.client)
|
||||
|
||||
# def send_samcam_details(self, beam_mark, beam_dimensions):
|
||||
# return self._api_beam.set_beam_mark(beam_mark, beam_dimensions)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
wrapper = AareLCInferWrapper(bl=mx_beamline())
|
||||
|
||||
Reference in New Issue
Block a user