Skip to content

Commit 0e6e62f

Browse files
committed
fix first run to be loaded
1 parent c8b6d64 commit 0e6e62f

File tree

1 file changed

+11
-3
lines changed
  • src/nectarchain/dqm/bokeh_app

1 file changed

+11
-3
lines changed

src/nectarchain/dqm/bokeh_app/main.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,24 @@ def update_camera_displays(attr, old, new):
5656
# displays[parentkey][childkey].datasource.stream(image)
5757

5858

59+
print("Opening connection to ZODB")
5960
db = DQMDB(read_only=True).root
61+
print("Getting list of run numbers")
6062
runids = sorted(list(db.keys()))
6163

6264
# First, get the run id with the most populated result dictionary
63-
run_dict_lengths = [len(db[r].keys()) for r in runids]
64-
runid = runids[np.argmax(run_dict_lengths)]
65-
65+
# On the full DB, this takes an awful lot of time, and saturates the RAM on the host
66+
# VM (gets OoM killed)
67+
# run_dict_lengths = [len(db[r]) for r in runids]
68+
# runid = runids[np.argmax(run_dict_lengths)]
69+
runid = "NectarCAM_Run0008"
70+
print(f"We will start with run {runid}")
71+
72+
print("Defining Select")
6673
# runid_input = NumericInput(value=db.root.keys()[-1], title="NectarCAM run number")
6774
run_select = Select(value=runid, title="NectarCAM run number", options=runids)
6875

76+
print(f"Getting data for run {run_select.value}")
6977
source = get_rundata(db, run_select.value)
7078
displays = make_camera_displays(db, source, runid)
7179

0 commit comments

Comments
 (0)