Skip to content
Draft
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
10 changes: 8 additions & 2 deletions cadetrdm/batch_running/study.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
from functools import wraps
import warnings

from cadetrdm import ProjectRepo


class Study(ProjectRepo):
def __init__(self, path, url=None, branch=None, name=None, suppress_lfs_warning=False, *args, **kwargs):
super().__init__(path=path, url=url, suppress_lfs_warning=suppress_lfs_warning, branch=branch, *args, **kwargs)
@wraps(ProjectRepo.__init__)
def __init__(
self,
*args,
**kwargs,
) -> None:
super().__init__(*args, **kwargs)
warnings.warn(
"cadetrdm.Study() will be deprecated soon. Please use ProjectRepo()",
FutureWarning
Expand Down