|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| int | fnv1a_64 (bytes data) |
| main () | |
rename_hashes.py Renames legacy numeric Elodin CSV files to their actual string component names. Elodin DB uses a 64-bit FNV-1a hash algorithm for component string names. Before the ControllerService was updated to broadcast set_component_name packets, the database exported CONTROLLER fields exclusively under their hash numbers. This script computes the FNV-1a hash of all known controller variables and renames matching files in the given export directory.
| int rename_hashes.fnv1a_64 | ( | bytes | data | ) |
Definition at line 17 of file rename_hashes.py.
Referenced by main().
| rename_hashes.main | ( | ) |
Definition at line 26 of file rename_hashes.py.
References fnv1a_64(), and main().
Referenced by main().