[yt-dev] Issue #953: Unassigned variable being referenced when trying to save slice plot as eps using eps.single_plot (yt_analysis/yt)

Daniel Fenn issues-reply at bitbucket.org
Thu Dec 11 15:00:19 PST 2014


New issue 953: Unassigned variable being referenced when trying to save slice plot as eps using eps.single_plot
https://bitbucket.org/yt_analysis/yt/issue/953/unassigned-variable-being-referenced-when

Daniel Fenn:

Running the attached script will throw an error stating that _p1 hasn't been assigned. Looking at the code, _p1 is only conditionally assigned; in this case, self.canvas=None, so the assignment isn't happening.

When this is fixed, I believe there will still be an error in axis_box_yt() in the file eps_writer.py. The trouble comes from the line 

_xrange = (0, width * plot.ds[units])

This throws a key error.

Responsible: jwise77



More information about the yt-dev mailing list