Skip to content

Commit

Permalink
Merge pull request #518 from WenjieDu/dev
Browse files Browse the repository at this point in the history
Fix unintended overwrite when saving models and update conda dependencies
  • Loading branch information
WenjieDu authored Sep 20, 2024
2 parents 0879253 + 9c18cdc commit 7f12620
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
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

0 comments on commit 7f12620

Please sign in to comment.