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
488c49d0
Commit
488c49d0
authored
1 year ago
by
Kien Le
Browse files
Options
Downloads
Patches
Plain Diff
Fix type hint
parent
fe95ced0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sohstationviewer/model/reftek_data/reftek_reader/log_file_reader.py
+2
-2
2 additions, 2 deletions
...viewer/model/reftek_data/reftek_reader/log_file_reader.py
with
2 additions
and
2 deletions
sohstationviewer/model/reftek_data/reftek_reader/log_file_reader.py
+
2
−
2
View file @
488c49d0
...
...
@@ -7,7 +7,7 @@ RT130_PACKETS = ['SH', 'SC', 'OM', 'DS', 'AD', 'CD', 'FD', 'EH', 'ET']
SeparatedPacketLines
=
Tuple
[
List
[
str
],
List
[
str
],
List
[
str
]]
def
detect_log_
file_
packet_format
(
packet
:
List
[
str
])
->
LogFileFormat
:
def
detect_log_packet_format
(
packet
:
List
[
str
])
->
Optional
[
LogFileFormat
]
:
"""
Detect the format of a log file packet. The format can be either rt2ms
'
,
logpeek
'
s, or SOHStationViewer
'
s.
...
...
@@ -239,7 +239,7 @@ class LogFileReader:
log_file
=
LogFile
(
self
.
file_path
)
for
packet
in
log_file
:
if
self
.
log_file_type
is
None
:
self
.
log_file_type
=
detect_log_
file_
packet_format
(
packet
)
self
.
log_file_type
=
detect_log_packet_format
(
packet
)
parser
=
PACKET_PARSERS
[
self
.
log_file_type
]
eh_et_lines
,
soh_lines
,
masspos_lines
=
parser
(
packet
)
...
...
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