Skip to content

Commit

Permalink
Update yt/frontends/gadget/data_structures.py
Browse files Browse the repository at this point in the history
Co-authored-by: Clément Robert <[email protected]>
  • Loading branch information
mtryan83 and neutrinoceros authored Jul 28, 2023
1 parent 636b488 commit 3bc804b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yt/frontends/gadget/data_structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ def _parse_parameter_file(self):
)
self.parameters = hvals

prefix = os.path.join(self.directory, self.basename.split(".", 1)[0])
basename, _, _ = self.basename.partition(".")
prefix = os.path.join(self.directory, basename)

if hvals["NumFiles"] > 1:
for t in (
Expand Down

0 comments on commit 3bc804b

Please sign in to comment.