Commit 62eeee64 authored by Rafael Celestre's avatar Rafael Celestre
Browse files

bug fix

parent bcfb3d21
......@@ -78,9 +78,16 @@ def srwl_opt_setup_fractal_surf(_sigma, _exponent, _pix_size, _delta, _atten_len
def srw_uti_mtrl_psd_avg(profile, axis_x, axis_y, pad=False, mthd=0, _range_r=(0, -1), _delta_r=1,
_range_theta=(0, -1), _delta_theta=1, _mask=None):
'''
:param profile: height profile as a 1D numpy array in [m]
:param profile: height profile as a 2D numpy array in [m]
:param axis_x: 1D numpy array in [m]
:param axis_y: 1D numpy array in [m]
:param pad: (boolean) zero padding to increase the frequency sampling
:param mthd: (future - add more averaging methods - currently: azimuthally int. only)
:param _range_r: in cylindrical coords.: start and end of R
:param _delta_r: in cylindrical coords.: step for R
:param _range_theta: in cylindrical coords.: start and end of theta for average
:param _delta_theta: in cylindrical coords.: step for theta
:param _mask: boolean mask
:return: 2D psd and its frequency axes
'''
def _f_xy(_theta, _rho):
......@@ -403,4 +410,5 @@ def single_gaussian_bump_2d(_size_tang=1., _size_sag=1., _npt=100, _nps=100, _b_
if _file_path is not None:
save_mirror_profile(profile, s_axis, t_axis, _file_path)
return profile, s_axis, t_axis
\ No newline at end of file
return profile, s_axis, t_axis
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment