SIENTIAPDE-1199

Refactor OPC class to remove success_count variable and streamline output tag management
This commit is contained in:
vitor-aignosi
2025-08-21 09:11:32 -03:00
parent baf52c4a16
commit 3761cbd22f

View File

@@ -181,8 +181,6 @@ class OPC(BaseActivity):
for server_id, config in opc_output_config.items():
success_count = 0
if not self.validate_server(server_id, metadata):
success = False
continue
@@ -190,7 +188,6 @@ class OPC(BaseActivity):
local_success, local_count = self.manage_output_tags(
server_id, config, data, metadata, success)
success = success and local_success
success_count += local_count
self.info(
f"Data written to OPC server {server_id}: {local_count} of {len(config['prediction_tags'])} prediction tags and {len(config['confidence_tags'])} confidence tags", metadata)