Skip to content

Commit

Permalink
- remove diff abs because useless
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBautin committed May 13, 2021
1 parent ab1eae1 commit 7874439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csa_rescale_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def main():
for rescale, group in df.groupby('rescale'):
for sub, subgroup in group.groupby('subject'):
diff.append((df.groupby('rescale').get_group(1).groupby('subject').get_group(sub).sample(n=1)['MEAN(area)'].values - group.groupby('subject').get_group(sub).sample(n=1)['MEAN(area)']).values)
df_sub['diff'] = np.abs(np.concatenate(diff, axis=0))
df_sub['diff'] = np.concatenate(diff, axis=0)
# save dataframe in a csv file
df_sub.to_csv(os.path.join(path_output, r'csa_sub.csv'))

Expand Down

0 comments on commit 7874439

Please sign in to comment.