results and clara changes

This commit is contained in:
Appleby Martin Vears
2024-11-04 13:04:16 +01:00
parent a2f05b768d
commit 4b8bab43ef
2 changed files with 182 additions and 33 deletions

View File

@@ -13,7 +13,8 @@ import MxdbVdpTools
# import matplotlib.pyplot as plt
LOG_FILENAME = time.strftime("/sf/cristallina/applications/mx/clara_tools/log/clara_%Y%m.log")
#LOG_FILENAME = time.strftime("/sf/cristallina/applications/mx/clara_tools/log/clara_%Y%m.log")
LOG_FILENAME = time.strftime("/sf/cristallina/data/p21981/res/clara_%Y%m.log")
logger.add(LOG_FILENAME, level="INFO", rotation="100MB")
@@ -240,6 +241,7 @@ def get_data_from_streamfiles():
# old message is a dict with all the input message params
# parse stream into dict
#TODO get on or off from streamfile naming and put it in output message
parsed_stream = stream_to_dictionary(sys.argv[1])
old_message["numberOfImages"] = len(parsed_stream)