Skip to content

Commit ce36381

Browse files
committed
couple of minor typos
1 parent 83873e3 commit ce36381

5 files changed

Lines changed: 18 additions & 18 deletions

File tree

ostap/core/ostap_setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@
6666
groot = ROOT.ROOT.GetROOT()
6767
if groot and config.batch and not groot.IsBatch () :
6868
groot.SetBatch ( True )
69-
if groot.IsBatch() : logger.attention ( "BATCH processig is activated!" )
69+
if groot.IsBatch() : logger.attention ( "BATCH processing is activated!" )
7070
elif groot and not config.batch and groot.IsBatch () :
7171
groot.SetBatch ( False )
72-
if not groot.IsBatch() : logger.info ( "BATCH processig is deactivated!" )
72+
if not groot.IsBatch() : logger.info ( "BATCH processing is deactivated!" )
7373

7474
# =============================================================================
7575
## (3) Root & RooFit print levels

ostap/frames/frames.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def _fr_helper_ ( frame , expressions , cuts = '' , progress = False ) :
247247
exprs, cuts, input_string = SV.vars_and_cuts ( expressions , cuts )
248248

249249
## Frame/Tree ?
250-
lenght = -1
250+
length = -1
251251

252252
if isinstance ( frame , ROOT.TTree ) : node , length = DataFrame ( frame ) , len ( frame )
253253
elif isinstance ( frame , frame_types ) : node = frame
@@ -261,12 +261,12 @@ def _fr_helper_ ( frame , expressions , cuts = '' , progress = False ) :
261261

262262
## progress ?
263263
if progress is False : pass
264-
elif progress is True and 0 < lenght :
264+
elif progress is True and 0 < length :
265265
current , cnt = frame_progress ( current , length )
266266
elif isinstance ( progress , integer_types ) and 1 < progress :
267267
current , cnt = frame_progress ( current , progress )
268268
elif progress :
269-
current , cnt = frame_progress ( current , lenght )
269+
current , cnt = frame_progress ( current , length )
270270

271271
vnames = ordered_dict ()
272272
added = ordered_dict ()
@@ -375,14 +375,14 @@ def _fr_new_init_ ( self , *args , **kwargs ) :
375375
self._fr_old_init_ ( *args , **kwargs )
376376

377377
if progress and args :
378-
lenght = -1
379-
if isinstance ( args [ 0 ] , integer_types ) and 1 < args [ 0 ] : lenght = args [ 0 ]
380-
elif isinstance ( args [ 0 ] , ROOT.TTree ) : lenght = len ( args [ 0 ] )
381-
elif isinstance ( progress , integer_types ) and 1 < progress : lenght = progress
382-
_ , _ = frame_progress ( self , lenght )
378+
length = -1
379+
if isinstance ( args [ 0 ] , integer_types ) and 1 < args [ 0 ] : length = args [ 0 ]
380+
elif isinstance ( args [ 0 ] , ROOT.TTree ) : length = len ( args [ 0 ] )
381+
elif isinstance ( progress , integer_types ) and 1 < progress : length = progress
382+
_ , _ = frame_progress ( self , length )
383383
elif progress and isinstance ( progress , integer_types ) and 1 < progress :
384384
length = progress
385-
_ , _ = frame_progress ( self , lenght )
385+
_ , _ = frame_progress ( self , length )
386386

387387
if not hasattr ( DataFrame , '_fr_old_init_' ) :
388388
DataFrame._fr_old_init_ = DataFrame.__init__

ostap/histos/graphs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ def _grae_setitem_ ( graph , ipoint , point ) :
10681068
if ipoint < 0 : ipoint += len ( graph )
10691069

10701070
n = len ( point)
1071-
assert 2 <= n <= 6 , "Invalid lenght of 'point' object"
1071+
assert 2 <= n <= 6 , "Invalid length of `point` object"
10721072

10731073
pars = point
10741074

ostap/logger/table.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ def the_table ( rows ,
206206

207207
title_bw = decolorize ( title ).strip ()
208208
title = allright ( title_bw )
209-
twidth = visible_width ( title ) ## visible lenght of the title
210-
pwidth = visible_width ( prefix ) ## visible lenght of the prefix
209+
twidth = visible_width ( title ) ## visible lengtt of the title
210+
pwidth = visible_width ( prefix ) ## visible length of the prefix
211211

212212
if not maxwidth or maxwidth <= pwidth : maxwidth = terminal_size() [ 0 ]
213213

@@ -376,8 +376,8 @@ def table ( rows ,
376376

377377
title_bw = decolorize ( title ).strip ()
378378
title = allright ( title_bw )
379-
twidth = visible_width ( title ) ## visible lenght of the title
380-
pwidth = visible_width ( prefix ) ## visible lenght of the prefix
379+
twidth = visible_width ( title ) ## visible length of the title
380+
pwidth = visible_width ( prefix ) ## visible length of the prefix
381381

382382
if not maxwidth or maxwidth <= pwidth : maxwidth = terminal_size() [ 0 ]
383383

ostap/math/rootfinder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ def table ( self ,
799799

800800
c = b - a
801801
fc , ec = pretty_float ( c , precision = precision , width = width , with_sign = True )
802-
if ec : row = 'Lenght' , fc , '10^%+d' % ec
802+
if ec : row = 'Length' , fc , '10^%+d' % ec
803803
else : row = 'Length' , fc
804804
rows.append ( row )
805805

@@ -1261,7 +1261,7 @@ def __make_step ( self , a , b , x = None ) :
12611261

12621262
self.__roots = self.__roots [ -5 : ]
12631263

1264-
## the lenght of the interval brackeing interval
1264+
## the length of the interval bracketing interval
12651265
the_len = b.x - a.x
12661266

12671267
## if guess is not specified or invalid

0 commit comments

Comments
 (0)