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
8535b5c5
Commit
8535b5c5
authored
10 months ago
by
Kien Le
Browse files
Options
Downloads
Patches
Plain Diff
Remove unneeded package reference
parent
8ca4caf5
No related branches found
No related tags found
1 merge request
!280
Optimize reading RT130 data
Pipeline
#3848
passed with stage
in 9 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sohstationviewer/model/reftek_data/reftek.py
+4
-4
4 additions, 4 deletions
sohstationviewer/model/reftek_data/reftek.py
with
4 additions
and
4 deletions
sohstationviewer/model/reftek_data/reftek.py
+
4
−
4
View file @
8535b5c5
...
@@ -314,7 +314,7 @@ class RT130(GeneralData):
...
@@ -314,7 +314,7 @@ class RT130(GeneralData):
:param path2file: absolute path to file
:param path2file: absolute path to file
"""
"""
try
:
try
:
rt130
=
core
.
DecimatedReftek130
.
from_file
(
path2file
)
rt130
=
DecimatedReftek130
.
from_file
(
path2file
)
except
Exception
:
except
Exception
:
fmt
=
traceback
.
format_exc
()
fmt
=
traceback
.
format_exc
()
self
.
track_info
(
f
"
Skip file
{
path2file
}
can
'
t be read
"
self
.
track_info
(
f
"
Skip file
{
path2file
}
can
'
t be read
"
...
@@ -357,7 +357,7 @@ class RT130(GeneralData):
...
@@ -357,7 +357,7 @@ class RT130(GeneralData):
self
.
log_data
[
cur_data_set_id
][
'
SOH
'
]
=
[]
self
.
log_data
[
cur_data_set_id
][
'
SOH
'
]
=
[]
self
.
log_data
[
cur_data_set_id
][
'
SOH
'
].
append
((
d
[
'
time
'
],
logs
))
self
.
log_data
[
cur_data_set_id
][
'
SOH
'
].
append
((
d
[
'
time
'
],
logs
))
def
read_eh_or_et_packet
(
self
,
rt130
:
core
.
DecimatedReftek130
)
->
None
:
def
read_eh_or_et_packet
(
self
,
rt130
:
DecimatedReftek130
)
->
None
:
"""
"""
Files that contents EH or ET packets are data stream (DS and
Files that contents EH or ET packets are data stream (DS and
mass position (DS 9) files.
mass position (DS 9) files.
...
@@ -388,7 +388,7 @@ class RT130(GeneralData):
...
@@ -388,7 +388,7 @@ class RT130(GeneralData):
self
.
get_mass_pos_data_and_waveform_data
(
self
.
get_mass_pos_data_and_waveform_data
(
rt130
,
data_stream
,
cur_data_set_id
)
rt130
,
data_stream
,
cur_data_set_id
)
def
get_ehet_in_log_data
(
self
,
rt130
:
core
.
DecimatedReftek130
,
def
get_ehet_in_log_data
(
self
,
rt130
:
DecimatedReftek130
,
cur_data_set_id
:
Tuple
[
str
,
str
])
->
None
:
cur_data_set_id
:
Tuple
[
str
,
str
])
->
None
:
"""
"""
Read event header info to add to log_data[
'
EHET
'
]
Read event header info to add to log_data[
'
EHET
'
]
...
@@ -413,7 +413,7 @@ class RT130(GeneralData):
...
@@ -413,7 +413,7 @@ class RT130(GeneralData):
(
d
[
'
time
'
],
logs
))
(
d
[
'
time
'
],
logs
))
def
get_mass_pos_data_and_waveform_data
(
def
get_mass_pos_data_and_waveform_data
(
self
,
rt130
:
core
.
DecimatedReftek130
,
data_stream
:
int
,
self
,
rt130
:
DecimatedReftek130
,
data_stream
:
int
,
cur_data_set_id
:
Tuple
[
str
,
str
])
->
None
:
cur_data_set_id
:
Tuple
[
str
,
str
])
->
None
:
"""
"""
Get mass_pos_data for the current data_set_id in DS 9.
Get mass_pos_data for the current data_set_id in DS 9.
...
...
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