Functions | |
def | unique_detector_names |
def | detectors |
def | list_of_sources_in_run |
def | txt_of_sources_in_run |
def | list_of_sources_in_run_for_selected_detector |
def | list_of_sources_for_det |
def | experiment_runs |
def | dict_run_type |
def | list_of_runnums |
def | list_of_runstrings |
def | run_attributes |
def | print_run_attributes |
def | is_calibration_tag_for_name |
def | dict_runnum_dark |
def | calibration_runs |
def | print_calibration_runs |
def | dict_of_recs_for_run |
def | comment_for_run |
def | list_of_calibs_for_run |
def | print_unique_detector_names |
def | print_list_of_sources_for_det |
Variables | |
string | __version__ = "$Revision: 12193 $" |
tuple | l = list_of_runnums('CXI','cxic0213') |
tuple | d = dict_runnum_dark('CXI','cxic0213',list_of_nums=[1,163,206,220]) |
tuple | d = dict_runnum_dark('CXI','cxic0213') |
tuple | l = list_of_runnums('XPP','xppc7014') |
def RegDBUtils::unique_detector_names | ( | ) |
def RegDBUtils::detectors | ( | ins, | ||
exp, | ||||
run, | ||||
style = 'psana' | ||||
) |
Returns the list of detectors, for example: ['BldEb-0|NoDevice-0', 'CxiDg1-0|Tm6740-0', 'CxiDg2-0|Tm6740-0', 'CxiDs1-0|Cspad-0', ...].
Definition at line 46 of file RegDBUtils.py.
def RegDBUtils::list_of_sources_in_run | ( | ins, | ||
exp, | ||||
run | ||||
) |
Returns the list of detectors in style of psana, for example 'CxiDs1.0:Cspad.0'
Definition at line 55 of file RegDBUtils.py.
def RegDBUtils::txt_of_sources_in_run | ( | ins, | ||
exp, | ||||
run | ||||
) |
Returns the list of detectors as formatted text with heading line
Definition at line 62 of file RegDBUtils.py.
def RegDBUtils::list_of_sources_in_run_for_selected_detector | ( | ins, | ||
exp, | ||||
run, | ||||
det_selected | ||||
) |
Returns the list of detectors in run for selected detector. For example, for CSPAD returns ['CxiDs1.0:Cspad.0', 'CxiDsd.0:Cspad.0']
Definition at line 73 of file RegDBUtils.py.
def RegDBUtils::list_of_sources_for_det | ( | det_name = 'CSPAD' |
) |
Returns the list of sources for specified detector in style of psana, for example 'CxiDs1.0:Cspad.0'
Definition at line 81 of file RegDBUtils.py.
def RegDBUtils::experiment_runs | ( | ins, | ||
exp | ||||
) |
Returns the list of dictionaries, one dictionary per run, containing run parameters, for example: {'begin_time_unix': 1375417636, 'end_time_unix': 1375417646, 'num': 1L, 'exper_id': 329L, 'end_time': 1375417646535192694L, 'begin_time': 1375417636042155759L, 'type': 'DATA', 'id': 69762L}
Definition at line 97 of file RegDBUtils.py.
def RegDBUtils::dict_run_type | ( | ins, | ||
exp | ||||
) |
Returns the dictionary of pairs run:type, for example: {1: 'DATA', 2: 'DATA', 3: 'DATA', 4: 'DATA', 5: 'DATA',...}
Definition at line 105 of file RegDBUtils.py.
def RegDBUtils::list_of_runnums | ( | ins, | ||
exp | ||||
) |
Returns the list of run numbers for specified experiment.
Definition at line 119 of file RegDBUtils.py.
def RegDBUtils::list_of_runstrings | ( | ins, | ||
exp | ||||
) |
Returns the list of run numbers for specified experiment.
Definition at line 130 of file RegDBUtils.py.
def RegDBUtils::run_attributes | ( | ins, | ||
exp, | ||||
run | ||||
) |
Returns the list of dictionaries, one dictionary per attribute. Example of dict.: {'val': None, 'type': 'TEXT', 'class': 'Calibrations', 'descr': '', 'name': 'comment'}.
Definition at line 141 of file RegDBUtils.py.
def RegDBUtils::print_run_attributes | ( | ins, | ||
exp, | ||||
run | ||||
) |
def RegDBUtils::is_calibration_tag_for_name | ( | ins, | ||
exp, | ||||
run, | ||||
name = 'dark' | ||||
) |
Returns True if run has a tag for specified name in class 'Calibrations' and False othervise
Definition at line 161 of file RegDBUtils.py.
def RegDBUtils::dict_runnum_dark | ( | ins, | ||
exp, | ||||
list_of_nums = None | ||||
) |
Returns dictionary of pairs runnum:is_dark for runs in specified experiment. By default - for all runs in the experiment, if the list_of_nums is provided - for specified runs.
Definition at line 171 of file RegDBUtils.py.
def RegDBUtils::calibration_runs | ( | ins, | ||
exp | ||||
) |
Returns dictionary for pairs {runnum:dict_rec}, where dict_rec is a dictionary with info fields, for example: {'comment': '', 'calibrations': []}
Definition at line 190 of file RegDBUtils.py.
def RegDBUtils::print_calibration_runs | ( | ins, | ||
exp | ||||
) |
Definition at line 198 of file RegDBUtils.py.
def RegDBUtils::dict_of_recs_for_run | ( | ins, | ||
exp, | ||||
runnum | ||||
) |
Returns dictionary of records for run number For example, {'comment': 'Dark as reported by Philip', 'calibrations': ['dark']}
Definition at line 206 of file RegDBUtils.py.
def RegDBUtils::comment_for_run | ( | ins, | ||
exp, | ||||
runnum | ||||
) |
Returns comment for run number For example, 'Dark as reported by Philip'
Definition at line 214 of file RegDBUtils.py.
def RegDBUtils::list_of_calibs_for_run | ( | ins, | ||
exp, | ||||
runnum | ||||
) |
Returns list of calibration names for run For example, ['dark','flat']
Definition at line 222 of file RegDBUtils.py.
def RegDBUtils::print_unique_detector_names | ( | ) |
Definition at line 230 of file RegDBUtils.py.
def RegDBUtils::print_list_of_sources_for_det | ( | det_name = 'CSPAD' |
) |
Definition at line 234 of file RegDBUtils.py.
string RegDBUtils::__version__ = "$Revision: 12193 $" [static] |
Definition at line 23 of file RegDBUtils.py.
tuple RegDBUtils::l = list_of_runnums('CXI','cxic0213') [static] |
Definition at line 263 of file RegDBUtils.py.
Referenced by Eigen::internal::SparseLUImpl< Scalar, Index >::column_bmod(), Eigen::NumTraits< long double >::dummy_precision(), psana_test::flatten(), ConfigSvc::ConfigSvcImplFile::getList(), Eigen::internal::SparseLUImpl< Scalar, Index >::heap_relax_snode(), kth_smallest(), Eigen::internal::LU_kernel_bmod< SegSizeAtCompileTime >::run(), and Eigen::internal::triangular_solve_matrix< Scalar, Index, OnTheLeft, Mode, Conjugate, TriStorageOrder, ColMajor >::run().
tuple RegDBUtils::d = dict_runnum_dark('CXI','cxic0213',list_of_nums=[1,163,206,220]) [static] |
Definition at line 266 of file RegDBUtils.py.
Referenced by ImgAlgos::AlgImgProc::_makeMapOfLocalMaximumsV0(), ImgAlgos::AlgImgProc::_makeMapOfLocalMinimumsV0(), Eigen::QuaternionBase< Derived >::angularDistance(), box_snr(), Eigen::cdiv(), psddl_pds2psana::Epix::Config100aV1::Config100aV1(), psddl_pds2psana::Epix::Config100aV2::Config100aV2(), psddl_pds2psana::Epix::Config10KV1::Config10KV1(), psddl_pds2psana::Epix::ConfigV1::ConfigV1(), psddl_pds2psana::CsPad::ConfigV1::ConfigV1(), psddl_pds2psana::CsPad::ConfigV2::ConfigV2(), psddl_pds2psana::CsPad::ConfigV3::ConfigV3(), psddl_pds2psana::CsPad::ConfigV4::ConfigV4(), psddl_pds2psana::CsPad::ConfigV5::ConfigV5(), DragCenter::contains(), Eigen::AlignedBox< _Scalar, _AmbientDim >::corner(), psddl_pds2psana::Acqiris::DataDescV1< Config >::DataDescV1(), psddl_pds2psana::CsPad::DataV1< Config >::DataV1(), psddl_pds2psana::CsPad::DataV2< Config >::DataV2(), ImgAlgos::CommonModeCorrection::do_common_mode_epix100_v1(), ImgAlgos::CommonModeCorrection::do_common_mode_epix100_v2(), ImgAlgos::CommonModeCorrection::do_common_mode_fccd960(), Eigen::SimplicialCholeskyBase< Derived >::factorize_preordered(), ImgAlgos::findCommonMode(), pdscalibdata::CsPadCommonModeSubV1::findCommonMode(), pdscalibdata::findCommonMode(), psddl_pds2psana::PNCCD::FramesV1< Config >::FramesV1(), ImgAlgos::medianInRegionV3(), Eigen::internal::minimum_degree_ordering(), PSHdf5Input::Hdf5CalibCycleIter::next(), PSTime::Duration::operator!=(), Eigen::internal::gemm_pack_lhs< Scalar, Index, Pack1, Pack2, StorageOrder, Conjugate, PanelMode >::operator()(), PSTime::operator+(), PSTime::operator-(), PSTime::Duration::operator<(), PSTime::operator<<(), LogBook::operator<<(), PSTime::Duration::operator<=(), PSTime::Duration::operator==(), PSTime::Duration::operator>(), PSTime::Duration::operator>=(), PSTime::Duration::parseStringToDuration(), print(), Eigen::internal::real_2x2_jacobi_svd(), Eigen::internal::compute_inverse_size4< Architecture::SSE, float, MatrixType, ResultType >::run(), Eigen::internal::direct_selfadjoint_eigenvalues< SolverType, 3, false >::run(), Eigen::internal::general_matrix_vector_product< Index, LhsScalar, RowMajor, ConjugateLhs, RhsScalar, ConjugateRhs, Version >::run(), Eigen::internal::general_matrix_vector_product< Index, LhsScalar, ColMajor, ConjugateLhs, RhsScalar, ConjugateRhs, Version >::run(), Eigen::AlignedBox< _Scalar, _AmbientDim >::sample(), Eigen::QuaternionBase< Derived >::slerp(), and Eigen::umeyama().
tuple RegDBUtils::d = dict_runnum_dark('CXI','cxic0213') [static] |
Definition at line 269 of file RegDBUtils.py.
tuple RegDBUtils::l = list_of_runnums('XPP','xppc7014') [static] |
Definition at line 287 of file RegDBUtils.py.