Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def new_name_file(old_name):
- i = id_from_file_name(old_name)
- if i not in df_calc.index:
- print(i,"not in dataframe")
- return None
- if "accelerated" in df_calc.loc["Description"].lower():
- type_img = "Accelerated"
- else:
- type_img = "Normal"
- `return(f'{df_calc.loc[i,"Group"]}_{df_calc.loc[i,"Subject"]}_{df_calc.loc[i,"Visit"]}_{type_img}.nii')`
Add Comment
Please, Sign In to add comment