Skip to content

Commit

Permalink
fix bug in bundle command when using analyze stage
Browse files Browse the repository at this point in the history
  • Loading branch information
AdeelH committed Sep 29, 2023
1 parent 2eae7c1 commit 6eb5a1e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from rastervision.core.rv_pipeline import TRAIN, VALIDATION
from rastervision.pipeline.file_system.utils import (
download_if_needed, zipdir, get_local_path, upload_or_copy, make_dir,
sync_to_dir, file_exists)
sync_from_dir, file_exists)

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -252,8 +252,8 @@ def bundle(self):
shutil.copy(path, join(bundle_dir, fn))

if file_exists(self.config.analyze_uri, include_dir=True):
sync_to_dir(self.config.analyze_uri, join(
bundle_dir, 'analyze'))
analyze_dst = join(bundle_dir, 'analyze')
sync_from_dir(self.config.analyze_uri, analyze_dst)

path = download_if_needed(self.config.get_config_uri(), tmp_dir)
shutil.copy(path, join(bundle_dir, 'pipeline-config.json'))
Expand Down

0 comments on commit 6eb5a1e

Please sign in to comment.