Skip to content

Commit 2e10410

Browse files
authored
Merge pull request #51 from mfittere/bsrt
Bsrt
2 parents 785f2a3 + c0760c8 commit 2e10410

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

pytimber/LHCBSRT.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,11 @@ def fit(self,t1=None,t2=None,force=False,verbose=False):
396396
print(('ERROR: no data found for slot %s! ')%(slot) +
397397
'Check the data in timber using BSRT.get_timber_data()!')
398398
return self
399+
def get_slots(self):
400+
"""
401+
return list of non-empty slots
402+
"""
403+
return list(self.emit.keys())
399404
def _set_slots(self,slots):
400405
"""
401406
set slot numbers, handles the case of slots = None and only one
@@ -479,8 +484,10 @@ def plot(self,plane='h',t1=None,t2=None,slots=None,avg=10,fit=True,
479484
self.plot_fit(plane=plane,t1=t1,t2=t2,slots=slots,
480485
linestyle='--',color='k',verbose=verbose)
481486
set_xaxis_date()
482-
pl.ylabel(r'$\epsilon_{N,%s} \ [\mu m]$'%plane)
487+
pl.ylabel(r'$\epsilon_{N,%s} \ [\mu\mathrm{ m}]$'%plane.upper())
483488
pl.grid(b=True)
489+
if label is not None:
490+
pl.legend(loc='best',fontsize=12)
484491
return self
485492
def plot_fit(self,plane='h',t1=None,t2=None,slots=None,color=None,
486493
linestyle=None,label=None,verbose=False):

pytimber/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from .pagestore import PageStore
1212

13-
__version__ = "2.4.0"
13+
__version__ = "2.4.1"
1414

1515
__cmmnbuild_deps__ = [
1616
"accsoft-cals-extr-client",

0 commit comments

Comments
 (0)