Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  11 Mar 2025, Federico Rezzonico, Bug Report, python hist_get_events not returning events, but javascript does 
    Reply  11 Mar 2025, Ben Smith, Bug Report, python hist_get_events not returning events, but javascript does 
    Reply  14 Mar 2025, Konstantin Olchanski, Bug Report, python hist_get_events not returning events, but javascript does 
Message ID: 2949     Entry time: 14 Mar 2025     In reply to: 2947
Author: Konstantin Olchanski 
Topic: Bug Report 
Subject: python hist_get_events not returning events, but javascript does 
> After starting midas (mhttpd &, and mlogger -D) and running the `fetest` frontend I went into the midas/python/examples directory and ran basic_hist_script.py, and, even though I could see the 'pytest' program in the Programs page,
> 
> Valid events are:
> Enter event name:
> 
> was printed out, which signified that no events were found. No errors were displayed.

To check that MIDAS itself is built correctly, you can try "make test", this will create a sample experiment,
run fetest, start, stop a run and check that data file and history file is created with correct history events.

If "make test" fails, I can help debug it.

In your experiment, you can check that history files are created correctly:

1) "mhist -l" should show all available events
2) "mhdump -L *.hst" should show all events in the .hst history files
3) if you have the newer mhf*.dat files, you can "more mhf_1449770978_20151210_hv.dat" to see what data is inside

If all of that works as expected, there must be a problem with the python side and we will have to figure
out how to reproduce it.

This reminds me, "make test" does not test any of the python code, it should be added (and python should be added
to the bitbucket builds).

K.O.
ELOG V3.1.4-2e1708b5