From 083c2b2004bd5b3d3227a772c108c7c9cb322f52 Mon Sep 17 00:00:00 2001
From: johannesschabbauer <johannes.schabbauer@tuwien.ac.at>
Date: Thu, 23 Feb 2023 12:20:08 +0100
Subject: [PATCH] Remove unnecessary argument from init()

---
 FastComtecMCS8A/blacs_workers.py | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/FastComtecMCS8A/blacs_workers.py b/FastComtecMCS8A/blacs_workers.py
index d0a43f3..8eadbc6 100644
--- a/FastComtecMCS8A/blacs_workers.py
+++ b/FastComtecMCS8A/blacs_workers.py
@@ -15,17 +15,14 @@ from blacs.tab_base_classes import Worker
 
 class MCS8AWorker(Worker):
 
-    def init(self, h5_file):
+    def init(self):
         self.config = spcm_config_start.setup
         self.batch_file = self.config.get_config_key('Settings', 'batch_file')
-        self.process = subprocess.Popen(self.batch_file)
-        self.h5file = h5_file    # run batch file
-        # Do the rest        
+        self.process = subprocess.Popen(self.batch_file) # run batch file
+        # Do the rest
         self.dll_path  = self.config.get_config_key('Settings', 'dll_path')
         self.dll=WinDLL(self.dll_path) #put DLL path into the conf file
         print('init completed')
-        self.h5file = h5_file 
-        pass 
     
     def transition_to_buffered(self, device_name, h5_file, initial_values, fresh):
         self.h5file = h5_file
-- 
GitLab