brainlife / ezbids

A web service for semi-automated conversion of raw imaging data to BIDS

Home Page:https://brainlife.io/ezbids

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cog_atlas_tasks 'function' object is not iterable

DanNBullock opened this issue · comments

match_index = [x for x,y in enumerate(re.search(x, sd, re.IGNORECASE) for x in cog_atlas_tasks) if y != None]

I think it's probably because I'm running things out of order, but may be it would be a better practice to not reset this as a variable here:

cog_atlas_tasks = cog_atlas_tasks(cog_atlas_url)

When it was formerly set as a function here:

def cog_atlas_tasks(url):

In the end though, I guess it's just a matter of personal preference.

Good point, this is something I can go back and adjust.