Skip to content
Snippets Groups Projects
Commit bf102cc1 authored by Leon Michel Gorißen's avatar Leon Michel Gorißen
Browse files

delete some unnecessary logging info

parent d9ced0c2
Branches
Tags
No related merge requests found
...@@ -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)",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment