Functions | |
def | indent |
Variables | |
string | data |
int | headerwidth = 46 |
tuple | labels = ('First Name','Last Name','Age','Position') |
list | lumidata |
list | lumifooter = [('%-*s'%(24,'189'),'%-*s'%(10,'17.89'),'%-*s'%(10,'16.1'),'%-*s'%(20,'3.47'))] |
list | lumiheader = [('%-*s'%(30,'Lumi Sections'),'%-*s'%(46,'Luminosity'))] |
list | rows = [row.strip().split(',') for row in data.splitlines()] |
int | width = 10 |
def tablePrinter.indent | ( | rows, | |
hasHeader = False , |
|||
headerChar = '-' , |
|||
delim = ' | ' , |
|||
justify = 'center' , |
|||
separateRows = False , |
|||
prefix = '' , |
|||
postfix = '' , |
|||
wrapfunc = lambda x:x |
|||
) |
Indents a table by column. - rows: A sequence of sequences of items, one sequence per row. - hadHeader: True if the first row consists of the column's names. - headerChar: Character to be used for the row separator line (if hasHeader==True or separateRows==True). - delim: The column delimiter. - justify: Determines how are data justified in their column. Valid values are 'left','right','center'. - separateRows: True if rows are to be separated by a line of 'headerChar's. - prefix: A string prepended to each printed row. - postfix: A string appended to each printed row. - wrapfunc: A function f(text) for wrapping text; each element in the table is first wrapped by this function.
Definition at line 8 of file tablePrinter.py.
References Association.map, max(), and split.
string tablePrinter.data |
Definition at line 51 of file tablePrinter.py.
int tablePrinter.headerwidth = 46 |
Definition at line 71 of file tablePrinter.py.
tuple tablePrinter.labels = ('First Name','Last Name','Age','Position') |
Definition at line 50 of file tablePrinter.py.
list tablePrinter.lumidata |
Definition at line 64 of file tablePrinter.py.
list tablePrinter.lumifooter = [('%-*s'%(24,'189'),'%-*s'%(10,'17.89'),'%-*s'%(10,'16.1'),'%-*s'%(20,'3.47'))] |
Definition at line 73 of file tablePrinter.py.
list tablePrinter.lumiheader = [('%-*s'%(30,'Lumi Sections'),'%-*s'%(46,'Luminosity'))] |
Definition at line 70 of file tablePrinter.py.
Referenced by lumi::Lumi2DB.retrieveData().
Definition at line 54 of file tablePrinter.py.
Referenced by ME_MAP.divide_canvas(), SiPixelRecHitsValid.fillBarrel(), SiPixelRecHitsValid.fillForward(), SiPixelActionExecutor.fillSummary(), pos::PixelCalibConfiguration.PixelCalibConfiguration(), MuonResidualsFitter.read(), SiPixelCalibConfiguration.SiPixelCalibConfiguration(), and MuonResidualsFitter.write().
int tablePrinter.width = 10 |
Definition at line 59 of file tablePrinter.py.
Referenced by AlignableDet.addAlignmentPositionErrorFromRotation(), AlignableDetUnit.addAlignmentPositionErrorFromRotation(), CustomParticleFactory.addCustomParticle(), OptoScanAlgorithm.analyse(), MuonGeometrySVGTemplate.analyze(), Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea.autosizeScrollWidget(), MTVHistoProducerAlgo.BinLogX(), MuonTrackValidatorBase.BinLogX(), ecaldqm::MESetTrend.book(), PixelTopologyBuilder.build(), TrackerMap.build(), RPCGeometryBuilderFromCondDB.build(), FWTrackResidualDetailView.build(), DTGeometryBuilderFromDDD.buildChamber(), DTGeometryBuilderFromCondDB.buildChamber(), RPCGeometryBuilderFromDDD.buildGeometry(), RPCGeometryParsFromDD.buildGeometry(), DTGeometryBuilderFromDDD.buildLayer(), DTGeometryBuilderFromCondDB.buildLayer(), DTGeometryBuilderFromDDD.buildSuperLayer(), DTGeometryBuilderFromCondDB.buildSuperLayer(), CastorPedestalAnalysis.CastorPedVal(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.centerViewMenuButtonClicked(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.centerViewMenuButtonClicked(), edm::DocFormatHelper.commentWidth(), ForwardDiskSectorBuilderFromDet.computeBounds(), ForwardRingDiskBuilderFromDet.computeBounds(), TFParams.computePulseWidth(), TShapeAnalysis.computeShape(), boundSpan.computeSpan(), ForwardDetLayer.computeSurface(), DDHCalBarrelAlgo.constructInsideSector(), HICTrajectoryCorrector.correct(), FWTGeoRecoGeometryESProducer.createShape(), DreamSD.crystalWidth(), OptOMirror.detailedDeviatesLightRay(), OptOPlateSplitter.detailedTraversesLightRay(), OptOMirror.detailedTraversesLightRay(), OptOSensor2D.detailedTraversesLightRay(), RingMaker.determineExtensions(), TMatacq.doFit(), PrintGeomInfoAction.dumpPV(), RPCMonitorSync.endJob(), cms::HICSeedMeasurementEstimator.estimate(), DDTIBLayerAlgo_MTCC.execute(), DDTIBLayerAlgo.execute(), TrackerValidationVariables.fillHitQuantities(), SiStripMonitorTrack.fillMEs(), SiStripMonitorTrack.fillModMEs(), EcalCoder.findPedestal(), BeamMonitor.FitAndFill(), FWGUIManager.FWGUIManager(), SiStripInformationExtractor.getCondDBHistos(), SiStripInformationExtractor.getGlobalHistos(), SiStripInformationExtractor.getHistosFromPath(), SiPixelInformationExtractor.getHistosFromPath(), SiStripGainFromData.getPeakOfLandau(), OpticalObject.getPlate(), SiStripInformationExtractor.getSingleModuleHistos(), SiPixelInformationExtractor.getSingleModuleHistos(), SiStripInformationExtractor.getTrackerMapHistos(), SiPixelInformationExtractor.getTrackerMapHistos(), OptOCubeSplitter.getUpperPlate(), CSCValidation.getWidth(), HcalPedestalAnalysis.HcalPedVal(), HcalSiPM.hitCells(), DreamSD.initMap(), edm::service::ELtsErrorLog.item(), CustomParticleFactory.loadCustomParticles(), DDDividedPolyconeRho.makeDDLogicalPart(), DDDividedPolyhedraRho.makeDDLogicalPart(), CastorDbHardcode.makeGain(), CastorDbHardcode.makePedestal(), CastorDbHardcode.makePedestalWidth(), FWTableManagerBase.maxWidthForColumns(), SiStripMonitorMuonHLT.Normalizer(), edm::service.operator<<(), MuonResiduals5DOFFitter.plot(), MuonResiduals6DOFFitter.plot(), MuonResiduals6DOFrphiFitter.plot(), TwoBowedSurfacesDeformation.positionCorrection(), RecoTauPiZeroProducer.print(), SiStripClusterToDigiProducer.process(), ShallowClustersProducer.produce(), CastorClusterProducer.produce(), SiStripInformationExtractor.readStatusMessage(), SiPixelInformationExtractor.readStatusMessage(), Vispa.Views.PropertyView.PropertyView.resizeEvent(), CSGAction.resizeMenuEntry(), Vispa.Views.PropertyView.PropertyView.sectionResized(), edm::DocFormatHelper.setAtLeast1(), edm::DocFormatHelper.setAtLeast2(), edm::DocFormatHelper.setAtLeast3(), SiStripHistoPlotter.setNewCondDBPlot(), SiPixelHistoPlotter.setNewPlot(), SiStripHistoPlotter.setNewPlot(), dqmTnP::VoigtianPlusExponentialFitter.setup(), FWGUIManager.setWindowInfoFrom(), ecaldqm::MESetTrend.shift_(), Vispa.Gui.SimpleDraggableTreeWidget.SimpleDraggableTreeWidget.startDrag(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.treeViewMenuButtonClicked(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView.updateContent(), ValidateGeometry.validateDTLayerGeometry(), dqmTnP::VoigtianPlusExponentialFitter.VoigtianPlusExponentialFitter(), Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea.wheelEvent(), and Vispa.Main.TabController.TabController.zoomAll().