Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unintended overwrite when saving models and update conda dependencies #518

Merged
merged 4 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pypots/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ def save(
f"❌ File {saving_path} exists. Saving operation aborted. "
f"Use the arg `overwrite=True` to force overwrite."
)
return

try:
create_dir_if_not_exist(saving_dir)
Expand Down
5 changes: 1 addition & 4 deletions requirements/conda_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@ dependencies:
- conda-forge::pygrinder >=0.6.4
- conda-forge::tsdb >=0.6.1
- conda-forge::benchpots >=0.3
- conda-forge::ai4ts
- pytorch::pytorch >=1.10.0

- pip:
# not published on conda-forge yet
- ai4ts
Loading