Skip to content

Commit

Permalink
BUG: row wise string extraction from pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
jungheejung committed Aug 23, 2024
1 parent e1812bd commit d7560f4
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ def run_subprocess(command: list):
# Iterate over each row in the DataFrame
for index, row in missing_df.iterrows():
bids_string = row['BIDS_string']

# BIDS extract
bids_string = missing_df['BIDS_string']
# sub = extract_bids(bids_string, 'sub')
# ses = extract_bids(bids_string, 'ses')
# run = extract_bids(bids_string, 'run')
taskname = extract_bids(bids_string, 'taskname')
if taskname is None:
print(f"Task name extraction failed for index {index}. Skipping.")
Expand Down

0 comments on commit d7560f4

Please sign in to comment.