Traceback (most recent call last): File "5-step.py", line 303, in axlist.append(plt.subplot(gs[no, 0])) File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 766, in subplot a = fig.add_subplot(*args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 789, in add_subplot a = subplot_class_factory(projection_class)(self, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 8455, in __init__ self._axes_class.__init__(self, fig, self.figbox, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 463, in __init__ self.cla() File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 842, in cla spine.cla() File "/usr/lib/pymodules/python2.7/matplotlib/spines.py", line 157, in cla self.axis.cla() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 731, in cla self.reset_ticks() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 744, in reset_ticks self.majorTicks.extend([self._get_tick(major=True)]) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 1553, in _get_tick return XTick(self.axes, 0, '', major=major, **tick_kw) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 141, in __init__ self.tick2line = self._get_tick2line() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 401, in _get_tick2line l.set_transform(self.axes.get_xaxis_transform(which='tick2')) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 586, in get_xaxis_transform return self.spines['top'].get_spine_transform() File "/usr/lib/pymodules/python2.7/matplotlib/spines.py", line 374, in get_spine_transform self._ensure_position_is_set() File "/usr/lib/pymodules/python2.7/matplotlib/spines.py", line 140, in _ensure_position_is_set self.set_position(self._position) File "/usr/lib/pymodules/python2.7/matplotlib/spines.py", line 365, in set_position self.axis.cla() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 731, in cla self.reset_ticks() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 745, in reset_ticks self.minorTicks.extend([self._get_tick(major=False)]) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 1553, in _get_tick return XTick(self.axes, 0, '', major=major, **tick_kw) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 138, in __init__ self.apply_tickdir(tickdir) KeyboardInterrupt Traceback (most recent call last): File "5-step.py", line 425, in fig.tight_layout() File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 1388, in tight_layout max_nrows = max(nrows_list) ValueError: max() arg is an empty sequence Traceback (most recent call last): File "5-step.py", line 426, in plt.tight_layout() File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 1055, in tight_layout fig.tight_layout(pad=pad, h_pad=h_pad, w_pad=w_pad) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 1388, in tight_layout max_nrows = max(nrows_list) ValueError: max() arg is an empty sequence Traceback (most recent call last): File "5-step.py", line 431, in bicfig.savefig("{0}/{1}".format(bicname, run)) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 1185, in savefig self.canvas.print_figure(*args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 2021, in print_figure **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 474, in print_png filename_or_obj = file(filename_or_obj, 'wb') IOError: [Errno 2] No such file or directory: '/home/kilian/public_html/exp_req/bic_winners/2.png' Traceback (most recent call last): File "5-step.py", line 306, in axlist.append(plt.subplot(gs[no, 0])) File "/usr/lib/pymodules/python2.7/matplotlib/pyplot.py", line 766, in subplot a = fig.add_subplot(*args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 789, in add_subplot a = subplot_class_factory(projection_class)(self, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 8455, in __init__ self._axes_class.__init__(self, fig, self.figbox, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 452, in __init__ self._init_axis() File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 503, in _init_axis self.yaxis = maxis.YAxis(self) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 649, in __init__ self.cla() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 731, in cla self.reset_ticks() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 744, in reset_ticks self.majorTicks.extend([self._get_tick(major=True)]) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 1813, in _get_tick return YTick(self.axes, 0, '', major=major, **tick_kw) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 140, in __init__ self.tick1line = self._get_tick1line() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 521, in _get_tick1line l.set_transform(self.axes.get_yaxis_transform(which='tick1')) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 660, in get_yaxis_transform return self.spines['left'].get_spine_transform() File "/usr/lib/pymodules/python2.7/matplotlib/spines.py", line 374, in get_spine_transform self._ensure_position_is_set() File "/usr/lib/pymodules/python2.7/matplotlib/spines.py", line 140, in _ensure_position_is_set self.set_position(self._position) File "/usr/lib/pymodules/python2.7/matplotlib/spines.py", line 358, in set_position self.axes.transData) File "/usr/lib/pymodules/python2.7/matplotlib/transforms.py", line 1857, in blended_transform_factory return BlendedGenericTransform(x_transform, y_transform) File "/usr/lib/pymodules/python2.7/matplotlib/transforms.py", line 1714, in __init__ self.set_children(x_transform, y_transform) File "/usr/lib/pymodules/python2.7/matplotlib/transforms.py", line 134, in set_children child._parents[self] = None File "/usr/lib/python2.7/weakref.py", line 262, in __setitem__ self.data[ref(key, self._remove)] = value KeyboardInterrupt Traceback (most recent call last): File "5-step.py", line 414, in bax3 = bicfig.add_subplot(133) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 789, in add_subplot a = subplot_class_factory(projection_class)(self, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 8455, in __init__ self._axes_class.__init__(self, fig, self.figbox, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 463, in __init__ self.cla() File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 842, in cla spine.cla() File "/usr/lib/pymodules/python2.7/matplotlib/spines.py", line 157, in cla self.axis.cla() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 731, in cla self.reset_ticks() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 744, in reset_ticks self.majorTicks.extend([self._get_tick(major=True)]) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 1813, in _get_tick return YTick(self.axes, 0, '', major=major, **tick_kw) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 140, in __init__ self.tick1line = self._get_tick1line() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 519, in _get_tick1line zorder=self._zorder, File "/usr/lib/pymodules/python2.7/matplotlib/lines.py", line 207, in __init__ self.set_fillstyle(fillstyle) File "/usr/lib/pymodules/python2.7/matplotlib/lines.py", line 312, in set_fillstyle self._marker.set_fillstyle(fs) File "/usr/lib/pymodules/python2.7/matplotlib/markers.py", line 139, in set_fillstyle self._recache() File "/usr/lib/pymodules/python2.7/matplotlib/markers.py", line 116, in _recache self._path = Path(np.empty((0,2))) File "/usr/lib/pymodules/python2.7/matplotlib/path.py", line 132, in __init__ self.should_simplify = (rcParams['path.simplify'] and File "/usr/lib/pymodules/python2.7/matplotlib/__init__.py", line 673, in __getitem__ return dict.__getitem__(self, key) KeyboardInterrupt Traceback (most recent call last): File "5-step.py", line 66, in residuals res = data - func(params, x) File "5-step.py", line 127, in var_psf return gen_psf(nupars, base) File "5-step.py", line 107, in gen_psf gauss[i][j] *= ipart * np.exp(-q * (j - y) ** 2) KeyboardInterrupt Traceback (most recent call last): File "5-step.py", line 329, in result = lsq(residuals, param_guess, args=(plst.fun, xdata, starr)) File "/usr/lib/python2.7/dist-packages/scipy/optimize/minpack.py", line 283, in leastsq gtol, maxfev, epsfcn, factor, diag) minpack.error: Error occured while calling the Python function named residuals Traceback (most recent call last): File "5-step.py", line 426, in bax3 = bicfig.add_subplot(133) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 789, in add_subplot a = subplot_class_factory(projection_class)(self, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 8455, in __init__ self._axes_class.__init__(self, fig, self.figbox, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 452, in __init__ self._init_axis() File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 500, in _init_axis self.xaxis = maxis.XAxis(self) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 649, in __init__ self.cla() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 731, in cla self.reset_ticks() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 745, in reset_ticks self.minorTicks.extend([self._get_tick(major=False)]) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 1553, in _get_tick return XTick(self.axes, 0, '', major=major, **tick_kw) File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 140, in __init__ self.tick1line = self._get_tick1line() File "/usr/lib/pymodules/python2.7/matplotlib/axis.py", line 383, in _get_tick1line zorder=self._zorder, File "/usr/lib/pymodules/python2.7/matplotlib/lines.py", line 195, in __init__ self._marker = MarkerStyle() File "/usr/lib/pymodules/python2.7/matplotlib/markers.py", line 112, in __init__ self.set_marker(marker) File "/usr/lib/pymodules/python2.7/matplotlib/markers.py", line 171, in set_marker self._recache() File "/usr/lib/pymodules/python2.7/matplotlib/markers.py", line 124, in _recache self._marker_function() KeyboardInterrupt Traceback (most recent call last): File "5-step.py", line 63, in residuals res = data - func(params, x) File "5-step.py", line 104, in gen_psf gauss[i][j] *= ipart * np.exp(-q * (j - y) ** 2) KeyboardInterrupt Traceback (most recent call last): File "5-step.py", line 327, in result = lsq(residuals, param_guess, args=(plst.fun, xdata, starr)) File "/usr/lib/python2.7/dist-packages/scipy/optimize/minpack.py", line 283, in leastsq gtol, maxfev, epsfcn, factor, diag) minpack.error: Error occured while calling the Python function named residuals Traceback (most recent call last): File "5-step.py", line 477, in ring_fig.savefig("{0}/ring_fig.png".format(webname)) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 1185, in savefig self.canvas.print_figure(*args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 2021, in print_figure **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 469, in print_png FigureCanvasAgg.draw(self) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 421, in draw self.figure.draw(self.renderer) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 898, in draw func(*args) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 1997, in draw a.draw(renderer) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 405, in draw transform = self.get_transform() File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 167, in get_transform return self.get_patch_transform() + artist.Artist.get_transform(self) File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 1181, in get_patch_transform self._recompute_transform() File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 1165, in _recompute_transform center = (self.convert_xunits(self.center[0]), TypeError: 'NoneType' object has no attribute '__getitem__' Traceback (most recent call last): File "5-step.py", line 480, in ring_fig.savefig("{0}/ring_fig.png".format(webname)) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 1185, in savefig self.canvas.print_figure(*args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 2021, in print_figure **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 469, in print_png FigureCanvasAgg.draw(self) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 421, in draw self.figure.draw(self.renderer) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 898, in draw func(*args) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 1997, in draw a.draw(renderer) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 405, in draw transform = self.get_transform() File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 167, in get_transform return self.get_patch_transform() + artist.Artist.get_transform(self) File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 1181, in get_patch_transform self._recompute_transform() File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 1165, in _recompute_transform center = (self.convert_xunits(self.center[0]), TypeError: 'NoneType' object has no attribute '__getitem__' Traceback (most recent call last): File "5-step.py", line 480, in ring_fig.savefig("{0}/ring_fig.png".format(webname)) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 1185, in savefig self.canvas.print_figure(*args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 2021, in print_figure **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 469, in print_png FigureCanvasAgg.draw(self) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 421, in draw self.figure.draw(self.renderer) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 898, in draw func(*args) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 1997, in draw a.draw(renderer) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 405, in draw transform = self.get_transform() File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 167, in get_transform return self.get_patch_transform() + artist.Artist.get_transform(self) File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 1181, in get_patch_transform self._recompute_transform() File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 1165, in _recompute_transform center = (self.convert_xunits(self.center[0]), TypeError: 'NoneType' object has no attribute '__getitem__' Traceback (most recent call last): File "5-step.py", line 479, in ring_fig.savefig("{0}/ring_fig.png".format(webname)) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 1185, in savefig self.canvas.print_figure(*args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 2021, in print_figure **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 469, in print_png FigureCanvasAgg.draw(self) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 421, in draw self.figure.draw(self.renderer) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 898, in draw func(*args) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 1997, in draw a.draw(renderer) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 405, in draw transform = self.get_transform() File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 167, in get_transform return self.get_patch_transform() + artist.Artist.get_transform(self) File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 1181, in get_patch_transform self._recompute_transform() File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 1165, in _recompute_transform center = (self.convert_xunits(self.center[0]), TypeError: 'NoneType' object has no attribute '__getitem__' Traceback (most recent call last): File "5-step.py", line 485, in ring_fig.savefig("{0}/ring_fig.png".format(webname)) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 1185, in savefig self.canvas.print_figure(*args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 2021, in print_figure **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 469, in print_png FigureCanvasAgg.draw(self) File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_agg.py", line 421, in draw self.figure.draw(self.renderer) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/figure.py", line 898, in draw func(*args) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/axes.py", line 1997, in draw a.draw(renderer) File "/usr/lib/pymodules/python2.7/matplotlib/artist.py", line 55, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 405, in draw transform = self.get_transform() File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 167, in get_transform return self.get_patch_transform() + artist.Artist.get_transform(self) File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 1181, in get_patch_transform self._recompute_transform() File "/usr/lib/pymodules/python2.7/matplotlib/patches.py", line 1165, in _recompute_transform center = (self.convert_xunits(self.center[0]), TypeError: 'NoneType' object has no attribute '__getitem__' Traceback (most recent call last): File "5-step.py", line 500, in ring_ax.add_artist(ocirc[run]) IndexError: list index out of range Traceback (most recent call last): File "5-step.py", line 496, in ocirc[run] = None IndexError: list assignment index out of range