Showing 1 of 1 files from the diff.

@@ -359,13 +359,13 @@
Loading
359 359
    @_Compute._computed_property
360 360
    def density(self):
361 361
        """(:math:`w_x`, :math:`w_y`, :math:`w_z`) :class:`numpy.ndarray`: The
362 -
        image grid with the Gaussian density."""
362 +
        image grid with the voxelized density."""
363 +
        data = freud.util.make_managed_numpy_array(
364 +
            &self.thisptr.getDensity(), freud.util.arr_type_t.UNSIGNED_INT)
363 365
        if self.box.is2D:
364 -
            return np.squeeze(freud.util.make_managed_numpy_array(
365 -
                &self.thisptr.getDensity(), freud.util.arr_type_t.FLOAT))
366 +
            return np.squeeze(data)
366 367
        else:
367 -
            return freud.util.make_managed_numpy_array(
368 -
                &self.thisptr.getDensity(), freud.util.arr_type_t.FLOAT)
368 +
            return data
369 369
370 370
    @property
371 371
    def r_max(self):
Files Coverage
freud 90.00%
Project Totals (16 files) 90.00%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading