print out warning with line number and rest of arguments
Definition at line 19 of file __init__.py.
References print().
Referenced by ClusterSummary.addClusCharge(), ClusterSummary.addClusSize(), ClusterSummary.addNClus(), GEMAMC13Status.GEMAMC13Status(), GEMAMCStatus.GEMAMCStatus(), GEMOHStatus.GEMOHStatus(), GEMVFATStatus.GEMVFATStatus(), ClusterSummary.getClusCharge(), ClusterSummary.getClusSize(), ClusterSummary.getModuleLocation(), ClusterSummary.getNClus(), GEMAMC13Status.inValidAMC(), GEMAMCStatus.inValidOH(), and GEMOHStatus.inValidVFAT().
19 def warn (*args, **kwargs):
20 """print out warning with line number and rest of arguments""" 22 frame = inspect.stack()[1]
26 blankLines = kwargs.get(
'blankLines', 0)
28 print(
'\n' * blankLines)
29 spaces = kwargs.get(
'spaces', 0)
31 print(
' ' * spaces, end=
' ')
33 print(
"%s (%s): " % (filename, lineNum), end=
' ')
38 print(
"%s (%s):" % (filename, lineNum))
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)