Skip to content

Commit

Permalink
BF: Remove invalid BIDS extraction pre-condition (fixes dataladgh-29)
Browse files Browse the repository at this point in the history
Rational: we enable extractors manually and consciously, hence
it is OK to traverse a directory tree that was explicitly labeled
as "contains BIDS stuff".
  • Loading branch information
mih committed Aug 4, 2018
1 parent 35c353f commit 3b07f26
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions datalad_neuroimaging/extractors/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ class MetadataExtractor(BaseMetadataExtractor):
}

def get_metadata(self, dataset, content):
# (I think) we need a cheap test to see if there is anything, otherwise
# pybids we try to parse any size of directory hierarchy in full
if not exists(opj(self.ds.path, self._dsdescr_fname)):
return {}, []

paths = [(self.ds.path, 'bids')]
derivs_path = opj(self.ds.path, 'derivatives')
if exists(opj(self.ds.path, 'derivatives')):
Expand Down

0 comments on commit 3b07f26

Please sign in to comment.