[yt-dev] Issue #968: FITSImageBuffer notebook raises error in docs build (yt_analysis/yt)

Nathan Goldbaum issues-reply at bitbucket.org
Sun Jan 4 09:31:52 PST 2015


New issue 968: FITSImageBuffer notebook raises error in docs build
https://bitbucket.org/yt_analysis/yt/issue/968/fitsimagebuffer-notebook-raises-error-in

Nathan Goldbaum:

Here is the error and traceback:

```
#!python


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-9-ae59799c636e> in <module>()
----> 1 slc2 = yt.SlicePlot(ds2, "z", ["temperature"], width=(500.,"kpc"))
      2 slc2.set_log("temperature", True)
      3 slc2.show()

/Users/goldbaum/Documents/yt-hg/yt/visualization/plot_window.py in SlicePlot(ds, normal, fields, axis, *args, **kwargs)
   1912             del kwargs['north_vector']
   1913 
-> 1914         return AxisAlignedSlicePlot(ds, normal, fields, *args, **kwargs)

/Users/goldbaum/Documents/yt-hg/yt/visualization/plot_window.py in __init__(self, ds, axis, fields, center, width, axes_unit, origin, fontsize, field_parameters, window_size, aspect, data_source)
   1053         slc = ds.slice(axis, center[axis], field_parameters=field_parameters,
   1054                        center=center, data_source=data_source)
-> 1055         slc.get_data(fields)
   1056         PWViewerMPL.__init__(self, slc, bounds, origin=origin,
   1057                              fontsize=fontsize, fields=fields,

/Users/goldbaum/Documents/yt-hg/yt/data_objects/data_containers.py in get_data(self, fields)
    620     def get_data(self, fields=None):
    621         if self._current_chunk is None:
--> 622             self.index._identify_base_chunk(self)
    623         if fields is None: return
    624         nfields = []

/Users/goldbaum/Documents/yt-hg/yt/data_objects/data_containers.py in index(self)
    136         if self._index is not None:
    137             return self._index
--> 138         self._index = self.ds.index
    139         return self._index
    140 

/Users/goldbaum/Documents/yt-hg/yt/data_objects/static_output.pyc in index(self)
    281             oldsettings = np.geterr()
    282             np.seterr(all='ignore')
--> 283             self.create_field_info()
    284             np.seterr(**oldsettings)
    285         return self._instantiated_index

/Users/goldbaum/Documents/yt-hg/yt/data_objects/static_output.pyc in create_field_info(self)
    325         self.filtered_particle_types = []
    326         self.field_info = self._field_info_class(self, self.field_list)
--> 327         self.coordinates.setup_fields(self.field_info)
    328         self.field_info.setup_fluid_fields()
    329         for ptype in self.particle_types:

/Users/goldbaum/Documents/yt-hg/yt/geometry/coordinates/spec_cube_coordinates.py in setup_fields(self, registry)
     63     def setup_fields(self, registry):
     64         if self.ds.no_cgs_equiv_length == False:
---> 65             return super(self, SpectralCubeCoordinateHandler
     66                     ).setup_fields(registry)
     67         for axi, ax in enumerate(self.axis_name):

TypeError: must be type, not SpectralCubeCoordinateHandler
```

Responsible: jzuhone



More information about the yt-dev mailing list