Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AossTower
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetObs
AossTower
Commits
1e2debf7
Verified
Commit
1e2debf7
authored
7 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Fix symbol renaming in frame generation for legacy db
parent
294ea1d9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aosstower/level_00/parser.py
+2
-1
2 additions, 1 deletion
aosstower/level_00/parser.py
with
2 additions
and
1 deletion
aosstower/level_00/parser.py
+
2
−
1
View file @
1e2debf7
...
...
@@ -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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment