defsave(self, path):savedir = smartutils.create_folder(pjoin(path, type(self).__name__)) smartutils.save_dict_to_json_file(pjoin(savedir,"hyperparams.json"), self.hyperparameters) params = {param.name: param.get_value()forparaminself.parameters}assertlen(self.parameters) == len(param...
nb.Nifti1Image(data, im.get_affine(), im.get_header()).to_filename(out_file)returnout_file 开发者ID:Alunisiira,项目名称:nipype,代码行数:29,代码来源:utils.py 示例4: read_data ▲点赞 1▼ defread_data(self):print("\nRead Data")# List input directory containing the .csv filesforfil...
nib.save(nib.Nifti1Image(cluster_map,None, avg_file.header), output_file) data = all_file.get_data() thr_data = data > thr res = np.sum(thr_data,3) output_file =_opj(output_dir,"{}_sum_thr_{}.nii.gz".format(prefix, thr)) nib.save(nib.Nifti1Image(res,None, avg_file.hea...