Skip to content

Commit

Permalink
fix: simplify AthenaDataset._is_valid method
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jul 9, 2021
1 parent 9747a6a commit 0e92b11
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions yt/frontends/athena/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,12 +632,7 @@ def _parse_parameter_file(self):

@classmethod
def _is_valid(cls, filename, *args, **kwargs):
try:
if "vtk" in filename:
return True
except Exception:
pass
return False
return filename.endswith(".vtk")

@property
def _skip_cache(self):
Expand Down

0 comments on commit 0e92b11

Please sign in to comment.