Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Software Public
PASSOFT
SOHViewer
Commits
baa644fc
Commit
baa644fc
authored
1 year ago
by
Kien Le
Browse files
Options
Downloads
Patches
Plain Diff
Read mass-position lines in SOHStationViewer log
parent
fa7dcc29
No related branches found
No related tags found
1 merge request
!199
Write log file
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sohstationviewer/model/reftek_data/reftek_reader/log_file_reader.py
+3
-1
3 additions, 1 deletion
...viewer/model/reftek_data/reftek_reader/log_file_reader.py
with
3 additions
and
1 deletion
sohstationviewer/model/reftek_data/reftek_reader/log_file_reader.py
+
3
−
1
View file @
baa644fc
...
...
@@ -125,7 +125,7 @@ def parse_log_packet_sohstationviewer(packet: List[str]
"""
Parse a log packet assuming that the log file comes from sohstationviewer.
In this case, the file is composed mainly of SOH packets, with the event
info lines being written at the end of the file.
info
and mass-position
lines being written at the end of the file.
:param packet: list of lines in the packet
:return: the lists of event lines, SOH lines, and mass-position lines in
packet
...
...
@@ -135,6 +135,8 @@ def parse_log_packet_sohstationviewer(packet: List[str]
masspos_lines
=
[]
if
packet
[
0
].
startswith
(
'
Events:
'
):
eh_et_lines
=
packet
[
1
:]
elif
packet
[
0
].
startswith
(
'
Mass-positions:
'
):
masspos_lines
=
packet
[
1
:]
else
:
soh_lines
=
packet
return
eh_et_lines
,
soh_lines
,
masspos_lines
...
...
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