proton_decay_study.generators package¶
Submodules¶
proton_decay_study.generators.base module¶
proton_decay_study.generators.gen3d module¶
-
class
proton_decay_study.generators.gen3d.
Gen3D
(datapaths, datasetname, labelsetname, batch_size=1)[source]¶ Bases:
proton_decay_study.generators.base.BaseDataGenerator
Creates a generator for a list of files
-
input
¶ Input shape property
Returns: A tuple representing
-
logger
= <logging.Logger object>¶
-
output
¶ Output shape property
Returns: A tuple representing the shape of the first data this picks out of the file
-
proton_decay_study.generators.multi_file module¶
proton_decay_study.generators.single_file module¶
proton_decay_study.generators.threaded_gen3d module¶
-
class
proton_decay_study.generators.threaded_gen3d.
SingleFileThread
(datasetname, labelsetname, batch_size)[source]¶ Bases:
threading.Thread
Wrapper thread for buffering data from a single file
-
activeThreads
= []¶
-
static
killRunThreads
(frame)[source]¶ Sets the thread kill flag to each of the ongoing analysis threads
-
logger
= <logging.Logger object>¶
-
queue
= <Queue.Queue instance>¶
-
queueLock
= <thread.lock object>¶
-
threadLock
= <thread.lock object>¶
-
-
class
proton_decay_study.generators.threaded_gen3d.
ThreadedMultiFileDataGenerator
(datapaths, datasetname, labelsetname, batch_size=1, nThreads=8)[source]¶ Bases:
proton_decay_study.generators.base.BaseDataGenerator
Uses threads to pull asynchronously from files
-
input
¶
-
logger
= <logging.Logger object>¶
-
output
¶
-
proton_decay_study.generators.threaded_multi_file module¶
-
class
proton_decay_study.generators.threaded_multi_file.
SingleFileThread
(datasetname, labelsetname, batch_size)[source]¶ Bases:
threading.Thread
Represents a single file that is asynchronously
-
activeThreads
= []¶
-
get
¶
-
static
killRunThreads
(frame)[source]¶ Sets the thread kill flag to each of the ongoing analysis threads
-
logger
= <logging.Logger object>¶
-
queue
= <Queue.Queue instance>¶
-
queueLock
= <thread.lock object>¶
-
threadLock
= <thread.lock object>¶
-
-
class
proton_decay_study.generators.threaded_multi_file.
ThreadedMultiFileDataGenerator
(datapaths, datasetname, labelsetname, batch_size=1, nThreads=2)[source]¶ Bases:
proton_decay_study.generators.base.BaseDataGenerator
Uses threads to pull asynchronously from files
-
input
¶
-
logger
= <logging.Logger object>¶
-
output
¶
-