pymepix.util package¶
Submodules¶
pymepix.util.spidrDummyTCP module¶
-
class
pymepix.util.spidrDummyTCP.
TPX3Handler
(request, client_address, server)[source]¶ Bases:
socketserver.BaseRequestHandler
,pymepix.core.log.Logger
pymepix.util.storage module¶
Useful functions to store data
pymepix.util.tcpsampler module¶
-
class
pymepix.util.tcpsampler.
TcpSampler
(address, longtime, chunk_size=10000, flush_timeout=0.3, input_queue=None, create_output=True, num_outputs=1, shared_output=None)[source]¶ Bases:
multiprocessing.context.Process
,pymepix.core.log.ProcessLogger
Recieves tcp packets
The same as UdpSampler just with TCP
-
close_file
¶
-
enable
¶ Enables processing
Determines whether the class will perform processing, this has the result of signalling the process to terminate. If there are objects ahead of it then they will stop receiving data if an input queue is required then it will get from the queue before checking processing This is done to prevent the queue from growing when a process behind it is still working
Parameters: value (bool) – Enable value Returns: Whether the process is enabled or not Return type: bool
-
outfile_name
¶
-
record
¶ Enables saving data to disk
Determines whether the class will perform processing, this has the result of signalling the process to terminate. If there are objects ahead of it then they will stop recieving data if an input queue is required then it will get from the queue before checking processing This is done to prevent the queue from growing when a process behind it is still working
Parameters: value (bool) – Enable value Returns: Whether the process should record and write to disk or not Return type: bool
-