Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 2, 2024
1 parent ff8304f commit 9fd8b7f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .vscode/PythonImportHelper-v2-Completion.json
Original file line number Diff line number Diff line change
Expand Up @@ -15778,4 +15778,4 @@
"detail": "thirdparty.small_gicp.src.test.python_test",
"documentation": {}
}
]
]
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"DockerRun.DisableAutoGenerateConfig": true,
"editor.cursorSmoothCaretAnimation": "on"
}
}
4 changes: 1 addition & 3 deletions src/eval/logger.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import json
from collections import defaultdict
from datetime import datetime

from pathlib import Path
from typing import Literal

Expand All @@ -12,7 +11,6 @@

from .utils import calculate_RMSE_np, compute_silhouette_diff


# os.environ["WANDB_API_KEY"] = "cedd2caf3e18114de5c6bac2c2c789298ece4ea5"
# os.environ["WANDB_MODE"] = "offline"

Expand Down Expand Up @@ -278,7 +276,7 @@ def load_history(self, tags: str = "baseline", mode: str = "overwrite") -> None:
organized_data = defaultdict(lambda: defaultdict(dict))
# If appending and file exists, load existing data
if mode == "overwrite" and Path("./res.json").exists():
with open("./res.json", "r") as f:
with open("./res.json") as f:
existing_data = json.load(f)
organized_data.update(existing_data)

Expand Down
1 change: 0 additions & 1 deletion src/plot_rmse.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@
# log.plot_RMSE(f"baseline_{baseline}")
# log.load_history()
log.load_history()

2 changes: 1 addition & 1 deletion src/res.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@
}
}
}
}
}

0 comments on commit 9fd8b7f

Please sign in to comment.