From 58f17555870e16350e895d260baf5cc61ad2e6ba Mon Sep 17 00:00:00 2001 From: bpinsard Date: Fri, 9 Feb 2024 21:21:54 -0500 Subject: [PATCH] minor fix --- docker/dicom_indexer/indexer/index_dicom.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/dicom_indexer/indexer/index_dicom.py b/docker/dicom_indexer/indexer/index_dicom.py index ea1396b..13eae93 100644 --- a/docker/dicom_indexer/indexer/index_dicom.py +++ b/docker/dicom_indexer/indexer/index_dicom.py @@ -322,17 +322,16 @@ def init_bids( source=bids_project_repo._attrs["ssh_url_to_repo"], path=tmpdir, ) + bids_project_ds.create(force=True) shutil.copytree( REPO_TEMPLATES_PATH / "bids", bids_project_ds.path, dirs_exist_ok=True ) write_ci_env(bids_project_ds, gitlab_group_path) - bids_project_ds.create(force=True) bids_project_ds.save(path=".", message="init structure and pipelines") bids_project_ds.install( path="sourcedata/dicoms", source=dicom_study_repo._attrs["ssh_url_to_repo"], ) - # TODO: setup sensitive / non-sensitive S3 buckets bids_project_ds.push(to="origin") # create dev branch and push for merge requests bids_project_ds.repo.checkout(BIDS_DEV_BRANCH, ["-b"])