Skip to content

Commit 5728c8c

Browse files
authored
Merge branch 'master' into master
2 parents 787ebac + 765c456 commit 5728c8c

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ pytimber with other CERN libraries, such as [PyJapc][].
3232

3333
* For Windows, [this][jpype-win] pre-compiled version of JPype seems to work
3434
best.
35+
* For CERN machines without internet access, you need to manually install the
36+
dependencies and use the mirrors on the Scripting Tools GitLab group:
37+
38+
```sh
39+
pip install git+https://gitlab.cern.ch/scripting-tools/jpype.git
40+
pip install git+https://gitlab.cern.ch/scripting-tools/cmmnbuild-dep-manager.git
41+
pip install git+https://gitlab.cern.ch/scripting-tools/pytimber.git
42+
43+
```
3544

3645
[jpype-win]: http://www.lfd.uci.edu/~gohlke/pythonlibs/#jpype
3746

pytimber/pytimber.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -640,9 +640,9 @@ def getIntervalsByLHCModes(self, t1, t2, mode1, mode2, unixtime=True,
640640
fills = self.getLHCFillsByTime(ts1, ts2, [mode1, mode2])
641641
out = []
642642
for fill in fills:
643-
fn = [fill['fillNumber']]
644-
m1 = []
645-
m2 = []
643+
fn=fill['fillNumber']
644+
m1=[]
645+
m2=[]
646646
for bm in fill['beamModes']:
647647
if bm['mode'] == mode1:
648648
m1.append(bm[mode1time])

0 commit comments

Comments
 (0)