Skip to content

Commit

Permalink
Merge pull request #2634 from AshKelly/more-bbox
Browse files Browse the repository at this point in the history
[yt-4.0] check for bbox before reverting to all_data
  • Loading branch information
munkm authored Jun 23, 2020
2 parents b6d9463 + 5f12c13 commit 0793d3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yt/geometry/selection_routines.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,9 @@ cdef class RegionSelector(SelectorObject):
cdef np.float64_t[:] DRE = _ensure_code(dobj.ds.domain_right_edge)
le_all = (np.array(LE) == _ensure_code(dobj.ds.domain_left_edge)).all()
re_all = (np.array(RE) == _ensure_code(dobj.ds.domain_right_edge)).all()
if le_all and re_all:
# If we have a bounding box, then we should *not* revert to all data
domain_override = getattr(dobj.ds, '_domain_override', False)
if le_all and re_all and not domain_override:
self.is_all_data = True
else:
self.is_all_data = False
Expand Down

0 comments on commit 0793d3e

Please sign in to comment.