def __str__(self): mesh_str = "Mesh:\n\t\t" + "\n\t\t".join(srw_obj2str(self.params.Mesh).split("\n")) + "\n\t" radiation_str = mesh_str + "\n\t".join(srw_obj2str(self.params).split("\n")) radiation_str = "Radiation:\n\t" + radiation_str + "\n" data_ehor = "\tarrEhor = array of shape " + str(self.data.arrEhor.shape) + " // the 2-nd dimension is (re,im)\n" data_ever = "\tarrEver = array of shape " + str(self.data.arrEver.shape) + " // the 2-nd dimension is (re,im)\n" data_str = data_ehor + data_ever return radiation_str + data_str
def __str__(self): res = '' for elem, pp in zip(self.srwl_beamline.arOpt, self.srwl_beamline.arProp): s1 = elem.__doc__ s2 = 'Prop. parameters = {0}'.format(pp) s3 = '\t'+'\n\t'.join(srw_obj2str(elem).split('\n')) res += '{0}\n{1}\n{2}\n'.format(s1, s2, s3) return res
def srw_info(self): return srw_obj2str(self._srwl_wf)