Commit 927197fb authored by ssomnath's avatar ssomnath
Browse files

BEtter printing of UDVS table

parent 738f8279
......@@ -828,10 +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('step_num\tdc_offset\tac_amp\twave_type\twave_mod\tin-field'
print('step_num\tdc_offset\tac_ampli\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]))
print('\t\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)
......@@ -857,10 +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('step_num\tdc_offset\tac_amp\twave_type\twave_mod\tin-field'
print('step_num\tdc_offset\tac_ampli\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]))
for ud_row in UDVS:
print('\t\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
......
Markdown is supported
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