Skip to content
Snippets Groups Projects
Verified Commit 1e2debf7 authored by David Hoese's avatar David Hoese
Browse files

Fix symbol renaming in frame generation for legacy db

parent 294ea1d9
No related branches found
No related tags found
No related merge requests found
......@@ -219,8 +219,9 @@ def read_frames(source, error_handler=lambda *a: None, tail=False):
def loggernet_to_tower(rec_dict, symbol_names):
"""Convert loggernet record dictionary to our standard naming"""
# assume that the next record after the traditional frame is the timestamp
old_symbols = ['timestamp'] + ParserV1V2.names
new_symbols = ['timestamp'] + symbol_names
return _make_frame(zip(new_symbols, rec_dict.values()), new_symbols, rename_timestamp=True)
return _make_frame(zip(old_symbols, rec_dict.values()), new_symbols, rename_timestamp=True)
def ldmp_generator(station_name, tables, symbol_names=ParserV1V2.names):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment