STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
rename_hashes Namespace Reference

Functions

int fnv1a_64 (bytes data)
 main ()

Detailed Description

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.

Function Documentation

◆ fnv1a_64()

int rename_hashes.fnv1a_64 ( bytes data)

Definition at line 17 of file rename_hashes.py.

Referenced by main().

◆ main()

rename_hashes.main ( )

Definition at line 26 of file rename_hashes.py.

References fnv1a_64(), and main().

Referenced by main().