Skip to content

Commit

Permalink
Remove dvc calls
Browse files Browse the repository at this point in the history
  • Loading branch information
DhanshreeA committed Jul 4, 2024
1 parent a2b3372 commit 2ddf3d2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
8 changes: 0 additions & 8 deletions ersilia/publish/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from ..utils.terminal import run_command
from .. import ErsiliaBase
from ..utils.dvc import DVCSetup
from ..default import GITHUB_ORG


Expand Down Expand Up @@ -58,12 +57,6 @@ def create(self, public=True):
)
self.message = "Initial commit"

def dvc(self):
dvc = DVCSetup(local_repo_path=self.repo_path, model_id=self.model_id)
dvc.gdrive_setup()
dvc.set_dvc_gdrive()
dvc.git_add_and_commit()

def git_push(self, message=None):
if not message:
message = self.message
Expand All @@ -75,7 +68,6 @@ def git_push(self, message=None):
os.chdir(self.cwd)

def push(self):
self.dvc()
self.git_push()

def test(self):
Expand Down
7 changes: 0 additions & 7 deletions ersilia/publish/rebase.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ def clone_current_model(self):
run_command("gh repo clone {0}/{1}".format(GITHUB_ORG, self.model_id))
os.chdir(self.cwd)

def dvc_part(self):
# TODO: Better overwritting functionality
self.file_folder_rebaser.do_file("data.h5", overwrite=False)
self.file_folder_rebaser.do_file(".dvcignore", overwrite=False)
self.file_folder_rebaser.do_folder(".dvc", overwrite=False)

def clean(self):
if os.path.exists(self.template_path):
self.logger.debug("Cleaning {0}".format(self.template_path))
Expand All @@ -86,4 +80,3 @@ def clean(self):
def rebase(self):
self.clone_template()
self.clone_current_model()
self.dvc_part()

0 comments on commit 2ddf3d2

Please sign in to comment.