diff options
Diffstat (limited to 'silx/gui/plot3d/scene/utils.py')
-rw-r--r-- | silx/gui/plot3d/scene/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/silx/gui/plot3d/scene/utils.py b/silx/gui/plot3d/scene/utils.py index bddbcac..c6cd129 100644 --- a/silx/gui/plot3d/scene/utils.py +++ b/silx/gui/plot3d/scene/utils.py @@ -1,7 +1,7 @@ # coding: utf-8 # /*########################################################################## # -# Copyright (c) 2015-2019 European Synchrotron Radiation Facility +# Copyright (c) 2015-2020 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -540,7 +540,7 @@ def segmentVolumeIntersect(segment, nbins): # bin edges/line intersection points points = t.reshape(-1, 1) * delta + p0 centers = (points[:-1] + points[1:]) / 2. - bins = numpy.floor(centers).astype(numpy.int) + bins = numpy.floor(centers).astype(numpy.int64) return bins |