Project

General

Profile

Bug #3875

bug in Throughput

Added by Ben Hambrecht over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Start date:
05/15/2013
Due date:
% Done:

0%

Estimated time:
Duration:

Description

Please fix. The problem occurs in Plotters_New called from Throughput.

=========================
entering Throughput
=========================
... imported data
... Combined minor optical elements
... Combined major optical elements with galaxy, including aperture losses
... computed final throughput
... exported data to databank
... basic diagnostic plots
bad plot; throughput spectrum
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
    176             else:
    177                 filename = fname
--> 178             __builtin__.execfile(filename, *where)

/Users/ben/Documents/DESpec/repo/despec/04-Throughput/CalculateThroughput_Nord/CalculateThroughput.py in <module>()
    153 #-------------------------------
    154 if __name__ == '__main__':
--> 155         main()
    156 
    157 

/Users/ben/Documents/DESpec/repo/despec/04-Throughput/CalculateThroughput_Nord/CalculateThroughput.py in main()
    146 def main():
    147 
--> 148         throughput()
    149         print
    150         print

/Users/ben/Documents/DESpec/repo/despec/04-Throughput/CalculateThroughput_Nord/CalculateThroughput.py in throughput()
    130                                                 color_bar = 'r',
    131                                                 fig_name='throughput_spectrum',
--> 132                                                 fig_number=0, plot_number=0, title='', base_directory='.', filename_addendum="", show_plot=show_plot
    133                         )
    134         except (RuntimeError, TypeError, NameError):

/Users/ben/Documents/DESpec/repo/despec/Plotters_New/Plotters_New.pyc in plot_line(center, hist, width, center1, hist1, width1, xmin, xmax, ymin, ymax, yrelmin, yrelmax, plot_type, color_bar, textx_loc, texty_loc, mytext, title, xlabel, ylabel, label_legend1, label_legend2, fig_name, base_directory, filename_addendum, file_type, choose_remove_file, fig_number, plot_number, show_plot)
    260         # get points for non-zero values of main histogram
    261         where_nonzero = numpy.where(hist > 0)
--> 262         center_nonzero = center[where_nonzero]
    263         hist_nonzero = hist[where_nonzero]
    264 

TypeError: list indices must be integers, not tuple

************************** finished CalculateThroughput **************************
CalculateThroughput runtime: 1.25 seconds

History

#1 Updated by Ben Hambrecht over 6 years ago

  • Status changed from New to Resolved


Also available in: Atom PDF