Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Demonstrating Data to Knowledge Pipelines
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Leon Michel Gorißen
Demonstrating Data to Knowledge Pipelines
Commits
bf102cc1
Commit
bf102cc1
authored
11 months ago
by
Leon Michel Gorißen
Browse files
Options
Downloads
Patches
Plain Diff
delete some unnecessary logging info
parent
d9ced0c2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dynamics_learning/dynamics_learning/testing/__init__.py
+2
-10
2 additions, 10 deletions
dynamics_learning/dynamics_learning/testing/__init__.py
with
2 additions
and
10 deletions
dynamics_learning/dynamics_learning/testing/__init__.py
+
2
−
10
View file @
bf102cc1
...
@@ -137,18 +137,13 @@ class Dataset:
...
@@ -137,18 +137,13 @@ class Dataset:
if
date
==
"
20240719_141438
"
:
if
date
==
"
20240719_141438
"
:
continue
continue
dates
.
append
(
date
)
dates
.
append
(
date
)
self
.
most_recent_file
=
max
(
dates
)
logger
.
info
(
dates
)
self
.
most_recent_file
=
max
(
dates
)
# FIXME this is not returning the most recent file
logger
.
info
(
f
"
Most recent file is set to
{
self
.
most_recent_file
}
.
"
)
logger
.
info
(
f
"
Most recent file is set to
{
self
.
most_recent_file
}
.
"
)
return
self
.
most_recent_file
return
self
.
most_recent_file
def
_delete_files
(
self
,
files
,
most_recent_file
:
None
):
def
_delete_files
(
self
,
files
,
most_recent_file
:
None
):
logger
.
info
(
f
"
Most recent file is
{
most_recent_file
}
.
"
)
logger
.
info
(
f
"
Most recent file is
{
most_recent_file
}
.
"
)
for
file
in
files
:
for
file
in
files
:
logger
.
info
(
f
"
Checking
{
file
.
name
}
.
"
)
if
most_recent_file
:
if
most_recent_file
:
if
most_recent_file
not
in
file
.
name
:
if
most_recent_file
not
in
file
.
name
:
local_file_path
=
Path
(
self
.
local_path
+
"
/
"
+
file
.
name
)
local_file_path
=
Path
(
self
.
local_path
+
"
/
"
+
file
.
name
)
...
@@ -190,7 +185,6 @@ class Dataset:
...
@@ -190,7 +185,6 @@ class Dataset:
for
file
in
files
for
file
in
files
if
file
.
metadata_form
()[
"
Robot UUID
"
][
0
]
==
ROBOT_UUID
if
file
.
metadata_form
()[
"
Robot UUID
"
][
0
]
==
ROBOT_UUID
]
]
logger
.
info
(
f
"
Filtered files:
{
filtered_files
}
"
)
if
filtered_files
==
[]:
if
filtered_files
==
[]:
logger
.
critical
(
"
No files found with given robot_uuid.
"
)
logger
.
critical
(
"
No files found with given robot_uuid.
"
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
...
@@ -201,7 +195,6 @@ class Dataset:
...
@@ -201,7 +195,6 @@ class Dataset:
for
file
in
files
for
file
in
files
if
file
.
metadata_form
()[
"
Robot UUID
"
][
0
]
!=
ROBOT_UUID
if
file
.
metadata_form
()[
"
Robot UUID
"
][
0
]
!=
ROBOT_UUID
]
]
logger
.
info
(
f
"
Files to delete:
{
delete_files
}
"
)
if
filtered_files
:
if
filtered_files
:
# check for the most recent file
# check for the most recent file
...
@@ -211,7 +204,6 @@ class Dataset:
...
@@ -211,7 +204,6 @@ class Dataset:
# delete all files with wrong robot_uuid
# delete all files with wrong robot_uuid
if
delete_files
:
if
delete_files
:
logger
.
log
(
"
I think this needs fixing
"
)
self
.
_delete_files
(
delete_files
,
None
)
self
.
_delete_files
(
delete_files
,
None
)
return
self
.
analysis_file
return
self
.
analysis_file
...
@@ -442,7 +434,7 @@ LSTM Implementation Output: Concluded
...
@@ -442,7 +434,7 @@ LSTM Implementation Output: Concluded
color
=
rwth_style
.
green
,
color
=
rwth_style
.
green
,
)
)
axs
[
joint_number
//
num_col
,
joint_number
%
num_col
].
scatter
(
# FIXME
axs
[
joint_number
//
num_col
,
joint_number
%
num_col
].
scatter
(
t_meas
[
window_size
-
1
:],
t_meas
[
window_size
-
1
:],
y_pred
[:,
joint_number
],
y_pred
[:,
joint_number
],
label
=
"
Prediction based on command trajectory (NN)
"
,
label
=
"
Prediction based on command trajectory (NN)
"
,
...
...
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