Skip to content

Commit

Permalink
Minor fix for aesthetics of log output
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewturk committed Jun 18, 2020
1 parent 1b9b029 commit 9e2e2d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yt/geometry/particle_geometry_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,12 @@ def _initialize_index(self):

dont_load = dont_cache and not hasattr(ds, 'index_filename')
try:
if dont_load:
raise OSError
rflag = self.regions.load_bitmasks(fname)
rflag = self.regions.check_bitmasks()
self._initialize_frontend_specific()
if dont_load or rflag == 0:
if rflag == 0:
raise OSError
except (OSError, struct.error):
self.regions.reset_bitmasks()
Expand Down

0 comments on commit 9e2e2d6

Please sign in to comment.