Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RF: make datalad use fake dates timeline (by default). #352

Merged
merged 1 commit into from
Jun 26, 2019
Merged
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
11 changes: 9 additions & 2 deletions heudiconv/external/dlad.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ def add_to_datalad(topdir, studydir, msg, bids):
assert external_versions['datalad'] >= MIN_VERSION, (
"Need datalad >= {}".format(MIN_VERSION)) # add to reqs

create_kwargs = {}
if external_versions['datalad'] >= '0.10':
create_kwargs['fake_dates'] = True # fake dates by default

studyrelpath = op.relpath(studydir, topdir)
assert not studyrelpath.startswith(op.pardir) # so we are under
# now we need to test and initiate a DataLad dataset all along the path
Expand All @@ -58,7 +62,9 @@ def add_to_datalad(topdir, studydir, msg, bids):
force=True,
no_annex=True,
# shared_access='all',
annex_version=6)
annex_version=6,
**create_kwargs
)
assert ds == ds_
assert ds.is_installed()
superds = ds
Expand Down Expand Up @@ -113,7 +119,8 @@ def add_to_datalad(topdir, studydir, msg, bids):
"yet provided", ds)
else:
dsh = ds.create(path='.heudiconv',
force=True
force=True,
**create_kwargs
# shared_access='all'
)
# Since .heudiconv could contain sensitive information
Expand Down