BLM headers are no fun to deal with.
Check the headers
folder for some generated BLM headers.
To download just the headers run the dl_headers.py
script, from a terminal:
curl https://raw.githubusercontent.com/loiccoyle/blm_header_repo/master/dl_headers.py | python3
If you want to regenerate the headers, you can by:
git clone https://github.com/loiccoyle/blm_header_repo
cd blm_header_repo
make dependencies
make blm_headers
Note it usually is a good idea to do it in a virtual environment.
The headers are generated using loiccoyle/blm_header
. Have a look at the generate_headers.py
file, it should be relatively easy to understand whats going on. The basic gist is the following:
-
I get the timings of the changes from
timber
's BLM metadata (plus a few extra manually added). -
For each timestamp I find the closest fill following it which reaches
STABLE
and start matching on the 2 hours following theINJPROT
beam mode. This avoids matching on an empty machine which improves the matching quality as it is not matching on noise.