From 6ab8b7ebe15e7c544657b1c73a56ccd11006d43e Mon Sep 17 00:00:00 2001
From: GuenterQuast <Guenter.Quast@online.de>
Date: Mon, 10 Jun 2024 16:16:18 +0200
Subject: [PATCH] deleted backup file

---
 modules/#redPitaya_source.py# | 64 -----------------------------------
 1 file changed, 64 deletions(-)
 delete mode 100644 modules/#redPitaya_source.py#

diff --git a/modules/#redPitaya_source.py# b/modules/#redPitaya_source.py#
deleted file mode 100644
index 423ea6f..0000000
--- a/modules/#redPitaya_source.py#
+++ /dev/null
@@ -1,64 +0,0 @@
-"""
-**redPitaya_source**: mimoCoRB source compatible to redPoscdaq
-
-Input data is provided as numpy-arry of shape (number_of_channels, number_of_samples).
-"""
-
-from mimocorb.buffer_control import rbImport
-import numpy as np
-import sys, time
-from mutiprocessing import Event
-
-def simul_source(source_list=None, sink_list=None, observe_list=None, config_dict=None, **rb_info):
-    """
-    Generate simulated data and pass data to buffer
-
-    The class mimocorb.buffer_control/rbImport is used to interface to the
-    newBuffer and Writer classes of the package mimoCoRB.mimo_buffer
-
-    This example may serve as a template for other data sources
-
-    :param config_dict: configuration dictionary
-
-      - events_required: number of events to be simulated or 0 for infinite
-      - sleeptime: (mean) time between events
-      - random: random time between events according to a Poission process
-      - number_of_samples, sample_time_ns, pretrigger_samples and analogue_offset
-        describe the waveform data to be generated (as for oscilloscope setup)
-
-    Internal parameters of the simulated physics process (the decay of a muon)
-    are (presently) not exposed to user.
-    """
-
-    global databuffer
-    data_ready = Event()
-    data_ready.clear()
-
-    run_rpControl(callback=rp_data)
-
-    def rp_data(data):
-        while data_ready.is_set():
-            time.sleep(0.01)
-        databuffer = data    
-        data_ready.set()
-
-    events_required = 1000 if "eventcount" not in config_dict else config_dict["eventcount"]
-
-    def yield_data():
-        """generate simulated data, called by instance of class mimoCoRB.rbImport"""
-
-        event_count = 0
-        while events_required == 0 or event_count < events_required:
-            data_ready.wait()
-            # deliver pulse data and no metadata
-            yield (databuffer, None)
-            data_ready.clear()
-            event_count += 1
-            
-    datasource = rbImport(config_dict=config_dict, sink_list=sink_list, ufunc=yield_data, **rb_info)
-    # possibly check consistency of provided dtype with simulation !
-
-    # TODO: Change to logger!
-    # print("** simul_source ** started, config_dict: \n", config_dict)
-    # print("?> sample interval: {:02.1f}ns".format(osci.time_interval_ns.value))
-    datasource()
-- 
GitLab