propagator Namespace Reference


Classes

class  Scroll
class  Window
class  Dialog
class  MainWindow
class  imageRetriever

Functions

def setup
def diffusionKernel
def propagate
def fillProp
def onClick
 Propagate Button ##.
def refresh
 Refresh Button ##.
def reset
 Reset Button ##.
def getAssemImage
 Showing Images ##.
def eventsToShow
 Assembeles images with the specified events and shows them ##.
def mostConfusing
 Finds the 5 most confusing events that are not labeled ##.
def notLabeled
def unlabeled
 Shows up to 20 unlabeled events ##.
def onpick
 Shows the clicked events ##.
def setupRuns
 Finds users and their runs ##.
def getDset
 Turns datasets from how they saved to numpy arrays ##.
def labelsAndConflicts
 Figures out labels and conflicts ##.
def merge
 Does the merging after setting up the info ##.
def showMessage
def promptConflicts
def backgroundCollecting
 The setting up + merging code ##.

Variables

tuple parser = argparse.ArgumentParser()
tuple args = parser.parse_args()
 path = args.filepath
 startRun = args.startRun
 endRun = args.endRun
 expName = args.expName
 version = args.version
 detInfo = args.detector
tuple p = subprocess.Popen(['whoami'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
list user = out[:len(out)-1]
 dialogVisible = True
int _fromUtf8 = 8
int _encoding = 8
int f = 5
string grpNameDM = '/diffusionMap'
string dset_indices = '/D_indices'
string dset_indptr = '/D_indptr'
string dset_data = '/D_data'
list X = f[grpNameDM + '/eigvec']
tuple ir
list run = []
list times = []
list det = []
list evt = []
list userLabels = []
list propLabels = []
dictionary conflicts = {}
int counter = 0
tuple propLabels = np.copy(userLabels)
tuple app = QtGui.QApplication(sys.argv)
tuple win = MainWindow()
tuple fig = plt.figure()
tuple canvas = FigureCanvas(fig)
tuple ax = fig.add_subplot(111, projection='3d')
list colors = ['red' if propLabels[idx] == 1 else 'green' if propLabels[idx] == 2 else 'blue' if propLabels[idx] == 3 else 'black' for idx, val in enumerate(X[:,1])]
tuple userPosition = plt.axes([0.1, 0.03, 0.2, 0.055])
tuple userBtn = Button(userPosition, 'User Labels')
tuple propPosition = plt.axes([0.3, 0.03, 0.2, 0.055])
tuple prop = Button(propPosition, 'Propagate')
tuple unlabeledPosition = plt.axes([0.5, 0.03, 0.2, 0.055])
tuple unlabeledBtn = Button(unlabeledPosition, 'Unlabeled')
tuple confPosition = plt.axes([0.7, 0.03, 0.2, 0.055])
tuple confBtn = Button(confPosition, 'Confusion')


Function Documentation

def propagator::setup (   experimentName,
  runNumber,
  detInfo 
)

Definition at line 358 of file propagator.py.

def propagator::diffusionKernel (   X,
  eps,
  knn,
  D = None 
)

Definition at line 366 of file propagator.py.

def propagator::propagate (   matrix,
  list 
)

Definition at line 377 of file propagator.py.

def propagator::fillProp (  ) 

Definition at line 389 of file propagator.py.

def propagator::onClick (   event  ) 

Propagate Button ##.

Definition at line 424 of file propagator.py.

def propagator::refresh (  ) 

Refresh Button ##.

Definition at line 456 of file propagator.py.

def propagator::reset (   event  ) 

Reset Button ##.

Definition at line 463 of file propagator.py.

Referenced by LogBook::QueryProcessor::execute(), PSHdf5Input::Hdf5InputModule::fillEventEnv(), psddl_hdf2psana::Imp::ns_ConfigV1_v0_dataset_config_native_type(), and psddl_hdf2psana::Imp::ns_ConfigV1_v0_dataset_config_stored_type().

def propagator::getAssemImage (   globalIndex  ) 

Showing Images ##.

Definition at line 471 of file propagator.py.

def propagator::eventsToShow (   events  ) 

Assembeles images with the specified events and shows them ##.

Definition at line 485 of file propagator.py.

def propagator::mostConfusing (   event  ) 

Finds the 5 most confusing events that are not labeled ##.

Definition at line 503 of file propagator.py.

def propagator::notLabeled (  ) 

Definition at line 543 of file propagator.py.

def propagator::unlabeled (   event  ) 

Shows up to 20 unlabeled events ##.

Definition at line 553 of file propagator.py.

def propagator::onpick (   event  ) 

Shows the clicked events ##.

Definition at line 557 of file propagator.py.

def propagator::setupRuns (   runs,
  runsToUsers 
)

Finds users and their runs ##.

Definition at line 562 of file propagator.py.

def propagator::getDset (   user,
  run 
)

Turns datasets from how they saved to numpy arrays ##.

Definition at line 575 of file propagator.py.

def propagator::labelsAndConflicts (   totalEvts,
  data,
  users,
  labels,
  conflicts,
  run 
)

Figures out labels and conflicts ##.

Definition at line 589 of file propagator.py.

def propagator::merge (   runs,
  labels,
  conflicts,
  runsToUsers 
)

Does the merging after setting up the info ##.

Definition at line 610 of file propagator.py.

Referenced by PSXtcInput::DgramSourceFile::init(), and main().

def propagator::showMessage (  ) 

Definition at line 633 of file propagator.py.

def propagator::promptConflicts (   conflicts  ) 

Definition at line 640 of file propagator.py.

def propagator::backgroundCollecting (   userLabels,
  conflicts 
)

The setting up + merging code ##.

Definition at line 655 of file propagator.py.


Variable Documentation

tuple propagator::parser = argparse.ArgumentParser() [static]

Definition at line 22 of file propagator.py.

tuple propagator::args = parser.parse_args() [static]

Definition at line 30 of file propagator.py.

propagator::path = args.filepath [static]

Definition at line 31 of file propagator.py.

propagator::startRun = args.startRun [static]

Definition at line 33 of file propagator.py.

propagator::endRun = args.endRun [static]

Definition at line 34 of file propagator.py.

Referenced by BOOST_PYTHON_MODULE().

propagator::expName = args.expName [static]

Definition at line 35 of file propagator.py.

Referenced by ExpNameDatabase::getID(), ExpNameDatabase::getInstrumentAndID(), ExpNameDatabase::getNames(), and psana::PSAnaApp::setConfigFileAndOptions().

propagator::version = args.version [static]

Definition at line 36 of file propagator.py.

propagator::detInfo = args.detector [static]

Definition at line 37 of file propagator.py.

tuple propagator::p = subprocess.Popen(['whoami'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) [static]

Definition at line 39 of file propagator.py.

list propagator::user = out[:len(out)-1] [static]

Definition at line 41 of file propagator.py.

Referenced by LogBook::connect2server(), and RdbMySQL::Conn::open().

propagator::dialogVisible = True [static]

Definition at line 44 of file propagator.py.

int propagator::_fromUtf8 = 8 [static]

Definition at line 46 of file propagator.py.

int propagator::_encoding = 8 [static]

Definition at line 52 of file propagator.py.

int propagator::f = 5 [static]

Definition at line 677 of file propagator.py.

string propagator::grpNameDM = '/diffusionMap' [static]

Definition at line 678 of file propagator.py.

string propagator::dset_indices = '/D_indices' [static]

Definition at line 679 of file propagator.py.

string propagator::dset_indptr = '/D_indptr' [static]

Definition at line 680 of file propagator.py.

string propagator::dset_data = '/D_data' [static]

Definition at line 681 of file propagator.py.

list propagator::X = f[grpNameDM + '/eigvec'] [static]

Definition at line 682 of file propagator.py.

Referenced by Eigen::SparseLU< _MatrixType, _OrderingType >::_solve(), GeometryAccess::get_pixel_coord_indexes(), GeometryAccess::get_pixel_xy_at_z(), GeometryAccess::get_pixel_xy_inds_at_z(), CSPadImageProducer::getGeometryPars(), PixCoords2x1::getPixCoorRot000_pix(), PixCoords2x1::getPixCoorRot000_um(), PixCoords2x1::getPixCoorRot090_pix(), PixCoords2x1::getPixCoorRot090_um(), PixCoords2x1::getPixCoorRot180_pix(), PixCoords2x1::getPixCoorRot180_um(), PixCoords2x1::getPixCoorRot270_pix(), PixCoords2x1::getPixCoorRot270_um(), main(), GeometryAccess::print_pixel_coords(), Eigen::internal::MappedSuperNodalMatrix< _Scalar, _Index >::solveInPlace(), Eigen::SparseLUMatrixUReturnType< MatrixLType, MatrixUType >::solveInPlace(), Eigen::SparseLUMatrixLReturnType< MappedSupernodalType >::solveInPlace(), and test03().

tuple propagator::ir [static]

Initial value:

imageRetriever(filepath=path,expName=expName,startRun=startRun,
                    endRun=endRun,detInfo=detInfo)

Definition at line 684 of file propagator.py.

Referenced by ImgAlgos::AlgImgProc::_evaluateBkgdAvgRms(), ImgAlgos::AlgImgProc::_evaluateBkgdAvgRmsV2(), ImgAlgos::AlgImgProc::_evaluateBkgdAvgRmsV3(), ImgAlgos::AlgImgProc::_evaluateSoNForPixel(), ImgAlgos::AlgImgProc::_makeMapOfLocalMaximums(), ImgAlgos::AlgImgProc::_makeMapOfLocalMaximumsV0(), ImgAlgos::CSPadArrPeakFinder::collectStatInSect(), ImgAlgos::CSPadArrNoise::collectStatInSect(), cspad_mod::CsPadPedestals::endJob(), ImgAlgos::ImgPeakFinderAB::evaluateSoNForPixel(), ImgAlgos::CSPadArrPeakFinder::evaluateSoNForPixel(), ImgAlgos::CSPadArrNoise::evaluateSoNForPixel(), ImgAlgos::ImgMaskEvaluation::evaluateSoNForPixelForType(), ImgAlgos::CSPadArrPeakFinder::findPeaksInSect(), ImgAlgos::ImgRadialCorrection::normalizeHistograms(), ImgAlgos::CSPadMaskV1::print(), ImgAlgos::CSPadBackgroundV1::print(), ImgAlgos::CSPadArrPeakFinder::procStatArrays(), ImgAlgos::CSPadArrNoise::procStatArrays(), ImgAlgos::CSPadArrAverage::procStatArrays(), ImgAlgos::ImgRadialCorrection::resetHistograms(), ImgAlgos::CSPadArrSaveInFile::saveCSPadArrayInFile(), ImgAlgos::CSPadArrPeakFinder::saveCSPadArrayInFile(), ImgAlgos::CSPadArrNoise::saveCSPadArrayInFile(), ImgAlgos::CSPadArrAverage::saveCSPadArrayInFile(), and ImgAlgos::ImgRadialCorrection::saveHistograms().

list propagator::run = [] [static]

Definition at line 687 of file propagator.py.

list propagator::times = [] [static]

Definition at line 688 of file propagator.py.

list propagator::det = [] [static]

Definition at line 689 of file propagator.py.

list propagator::evt = [] [static]

Definition at line 690 of file propagator.py.

list propagator::userLabels = [] [static]

Definition at line 700 of file propagator.py.

list propagator::propLabels = [] [static]

Definition at line 701 of file propagator.py.

dictionary propagator::conflicts = {} [static]

Definition at line 702 of file propagator.py.

int propagator::counter = 0 [static]

Definition at line 705 of file propagator.py.

tuple propagator::propLabels = np.copy(userLabels) [static]

Definition at line 710 of file propagator.py.

tuple propagator::app = QtGui.QApplication(sys.argv) [static]

Definition at line 712 of file propagator.py.

tuple propagator::win = MainWindow() [static]

Definition at line 713 of file propagator.py.

Referenced by ImgAlgos::AlgArrProc::mapsOfConnectedPixels(), ImgAlgos::AlgArrProc::mapsOfLocalMaximums(), ImgAlgos::AlgArrProc::mapsOfLocalMinimums(), ImgAlgos::AlgArrProc::mapsOfPhotonNumbersV1(), ImgAlgos::AlgArrProc::mapsOfPixelStatus(), and ImgAlgos::AlgArrProc::setWindows().

tuple propagator::fig = plt.figure() [static]

Definition at line 714 of file propagator.py.

tuple propagator::canvas = FigureCanvas(fig) [static]

Definition at line 715 of file propagator.py.

tuple propagator::ax = fig.add_subplot(111, projection='3d') [static]

Definition at line 721 of file propagator.py.

list propagator::colors = ['red' if propLabels[idx] == 1 else 'green' if propLabels[idx] == 2 else 'blue' if propLabels[idx] == 3 else 'black' for idx, val in enumerate(X[:,1])] [static]

Definition at line 722 of file propagator.py.

Referenced by PSQt::getColorBarImage(), and PSQt::WdgColorTable::getColorTable().

tuple propagator::userPosition = plt.axes([0.1, 0.03, 0.2, 0.055]) [static]

Definition at line 725 of file propagator.py.

tuple propagator::userBtn = Button(userPosition, 'User Labels') [static]

Definition at line 726 of file propagator.py.

tuple propagator::propPosition = plt.axes([0.3, 0.03, 0.2, 0.055]) [static]

Definition at line 728 of file propagator.py.

tuple propagator::prop = Button(propPosition, 'Propagate') [static]

Definition at line 729 of file propagator.py.

tuple propagator::unlabeledPosition = plt.axes([0.5, 0.03, 0.2, 0.055]) [static]

Definition at line 731 of file propagator.py.

tuple propagator::unlabeledBtn = Button(unlabeledPosition, 'Unlabeled') [static]

Definition at line 732 of file propagator.py.

tuple propagator::confPosition = plt.axes([0.7, 0.03, 0.2, 0.055]) [static]

Definition at line 734 of file propagator.py.

tuple propagator::confBtn = Button(confPosition, 'Confusion') [static]

Definition at line 735 of file propagator.py.


Generated on 19 Dec 2016 for PSDMSoftware by  doxygen 1.4.7