Commit 738f8279 authored by ssomnath's avatar ssomnath
Browse files

BEtter printing of UDVS table

parent 7741e848
......@@ -828,7 +828,10 @@ def createSpecVals(udvs_mat, spec_inds, bin_freqs, bin_wfm_type, parm_dict,
print('\t' * 3 + '__FindSpecValIndices:')
print('\t' * 4 + 'UDVS matrix of shape: {}'.format(udvs_mat.shape))
print('\t' * 4 + 'spec_inds of shape: {}'.format(spec_inds.shape))
print(udvs_mat)
print('step_num\tdc_offset\tac_amp\twave_type\twave_mod\tin-field'
'\tout-of-field')
for ud_row in udvs_mat:
print('\t'.join(['{:04.2f}'.format(item) for item in ud_row]))
# Copy even step values of DC_offset into odd steps
UDVS = np.copy(udvs_mat)
......@@ -854,7 +857,10 @@ def createSpecVals(udvs_mat, spec_inds, bin_freqs, bin_wfm_type, parm_dict,
if verbose:
print('\t' * 4 + 'UDVS matrix after down-selecting rows: {}'
''.format(UDVS.shape))
print(udvs_mat)
print('step_num\tdc_offset\tac_amp\twave_type\twave_mod\tin-field'
'\tout-of-field')
for ud_row in udvs_mat:
print('\t'.join(['{:04.2f}'.format(item) for item in ud_row]))
"""
Transpose UDVS for ease of looping later on and store the number of steps
......
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