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
5b7d4cfd
Commit
5b7d4cfd
authored
1 year ago
by
Destiny Kuehn
Committed by
Kien Le
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove every reference to tmp_dir_obj and tmp_dir
parent
1012ac3f
No related branches found
Branches containing commit
No related tags found
1 merge request
!208
Resolve "remove tmp_dir_obj because not use memmap anymore"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sohstationviewer/database/soh.db
+0
-0
0 additions, 0 deletions
sohstationviewer/database/soh.db
sohstationviewer/model/general_data/general_data.py
+0
-23
0 additions, 23 deletions
sohstationviewer/model/general_data/general_data.py
with
0 additions
and
23 deletions
sohstationviewer/database/soh.db
+
0
−
0
View file @
5b7d4cfd
No preview for this file type
This diff is collapsed.
Click to expand it.
sohstationviewer/model/general_data/general_data.py
+
0
−
23
View file @
5b7d4cfd
...
...
@@ -148,14 +148,6 @@ class GeneralData():
"""
self
.
gaps
:
Dict
[
DataKey
,
List
[
List
[
float
]]]
=
{}
"""
tmp_dir: dir to keep memmap files. Deleted when object is deleted
"""
self
.
tmp_dir_obj
:
TemporaryDirectory
=
TemporaryDirectory
()
self
.
tmp_dir
=
self
.
tmp_dir_obj
.
name
if
not
on_unittest
:
self
.
save_temp_data_folder_to_database
()
self
.
_pauser
=
QtCore
.
QSemaphore
()
self
.
pause_response
=
None
...
...
@@ -279,17 +271,6 @@ class GeneralData():
self
.
selected_key
=
self
.
keys
[
ret
]
return
True
def
__del__
(
self
):
print
(
"
delete dataType Object
"
)
try
:
del
self
.
tmp_dir_obj
except
OSError
as
e
:
self
.
track_info
(
"
Error deleting %s : %s
"
%
(
self
.
tmp_dir
,
e
.
strerror
),
LogType
.
ERROR
)
print
(
"
Error deleting %s : %s
"
%
(
self
.
tmp_dir
,
e
.
strerror
))
print
(
"
finish deleting
"
)
def
track_info
(
self
,
text
:
str
,
type
:
LogType
)
->
None
:
"""
Display tracking info in tracking_box.
...
...
@@ -361,10 +342,6 @@ class GeneralData():
"""
return
cls
.
__new__
(
cls
)
def
save_temp_data_folder_to_database
(
self
):
execute_db
(
f
'
UPDATE PersistentData SET FieldValue=
"
{
self
.
tmp_dir
}
"
'
f
'
WHERE FieldName=
"
tempDataDirectory
"'
)
def
sort_all_data
(
self
):
"""
Sort traces by startTmEpoch on all data: waveform_data, mass_pos_data,
...
...
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