format script

This commit is contained in:
Emilia Allison 2024-10-24 18:25:05 -05:00
parent 7e244a55c5
commit fc4104a087
Signed by: emilia
GPG Key ID: 05D5D1107E5100A1
1 changed files with 8 additions and 8 deletions

View File

@ -1,13 +1,12 @@
#Cellario modules
# Cellario modules
from HRB.Cellario.Scripting import *
from HRB.Cellario.Scripting.API import *
import json
from sys import argv
from os import path, listdir
from dataclasses import dataclass
def Execute(api : PythonScriptingApi):
def Execute(api: PythonScriptingApi):
available_barcodes = "C:/temp/availabletubes.txt"
letter_dir = "C:/temp/letters"
input = "EH"
@ -25,7 +24,8 @@ def Execute(api : PythonScriptingApi):
output = letter_tubes_to_obj(letters)
api.Messaging.WriteDiagnostic(ScriptLogLevel.Normal, json.dumps(output))
list(api.CurrentRun.RunOrderParameters)[0].ParameterValue = json.dumps(output)
list(api.CurrentRun.RunOrderParameters)[
0].ParameterValue = json.dumps(output)
@dataclass(frozen=True)