Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SOHViewer
Manage
Activity
Members
Labels
Plan
Issues
11
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
3
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
481644ad
Commit
481644ad
authored
1 year ago
by
Kien Le
Browse files
Options
Downloads
Patches
Plain Diff
Handle log files with no SOH data
parent
1275d236
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
+7
-0
7 additions, 0 deletions
...viewer/model/reftek_data/reftek_reader/log_file_reader.py
with
7 additions
and
0 deletions
sohstationviewer/model/reftek_data/reftek_reader/log_file_reader.py
+
7
−
0
View file @
481644ad
...
@@ -267,6 +267,9 @@ class LogFileReader:
...
@@ -267,6 +267,9 @@ class LogFileReader:
# used to generate the file.
# used to generate the file.
if
split_packet_header
[
0
]
not
in
possible_programs
:
if
split_packet_header
[
0
]
not
in
possible_programs
:
self
.
station_code
=
split_packet_header
[
-
1
]
self
.
station_code
=
split_packet_header
[
-
1
]
if
self
.
station_code
is
None
and
eh_et_lines
:
# Each event info line stores the station code as second word
self
.
station_code
=
eh_et_lines
[
0
].
split
()[
1
]
if
self
.
experiment_number
is
None
and
soh_lines
:
if
self
.
experiment_number
is
None
and
soh_lines
:
found_experiment_number
=
get_experiment_number
(
soh_lines
)
found_experiment_number
=
get_experiment_number
(
soh_lines
)
self
.
experiment_number
=
found_experiment_number
self
.
experiment_number
=
found_experiment_number
...
@@ -277,6 +280,10 @@ class LogFileReader:
...
@@ -277,6 +280,10 @@ class LogFileReader:
# separate the SOH lines blocks during processing.
# separate the SOH lines blocks during processing.
self
.
soh_lines
.
append
(
'
\n
'
)
self
.
soh_lines
.
append
(
'
\n
'
)
self
.
masspos_lines
.
extend
(
masspos_lines
)
self
.
masspos_lines
.
extend
(
masspos_lines
)
# In cases where there is no SOH data, we are going to assume that the
# experiment number is 0.
if
self
.
experiment_number
is
None
:
self
.
experiment_number
=
'
0
'
def
process_mass_poss_line
(
masspos_lines
:
List
[
str
]
def
process_mass_poss_line
(
masspos_lines
:
List
[
str
]
...
...
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