Guest User

Untitled

a guest
Dec 14th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. def new_name_file(old_name):
  2. i = id_from_file_name(old_name)
  3. if i not in df_calc.index:
  4. print(i,"not in dataframe")
  5. return None
  6. if "accelerated" in df_calc.loc["Description"].lower():
  7. type_img = "Accelerated"
  8. else:
  9. type_img = "Normal"
  10. `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