Skip to content

Commit

Permalink
get rid of bval bvec cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danielasay committed Mar 22, 2024
1 parent 2ea0b5d commit a132e5a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions dwiqc/tasks/prequal_EQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ def build(self):

self.extract_b0_vol()

self.delete_bval_bvec()


def parse_json(self, eddy_dir):
logging.info('parsing qc.json file.')
Expand Down Expand Up @@ -187,15 +185,5 @@ def bind_environmentals(self):

os.environ["SINGULARITY_BIND"] = ','.join(bind)

def delete_bval_bvec(self):
cwd = os.getcwd()
logging.info('cleaning fmap bids directory')
fmap_dir = os.path.join(f'{self._bids}/sub-{self._sub}/ses-{self._ses}/fmap')
os.chdir(fmap_dir)
for file in os.listdir():
if file.endswith('.bval') or file.endswith('.bvec'):
os.remove(file)
os.chdir(cwd)



0 comments on commit a132e5a

Please sign in to comment.