Skip to content

Commit

Permalink
Merge pull request #126 from adigitoleo/tools
Browse files Browse the repository at this point in the history
dev: Fix type check syntax in h5part reader script
  • Loading branch information
Patol75 authored Aug 1, 2023
2 parents 8ac87ee + fc5bab3 commit 52323c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/h5part_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _get_args() -> argparse.Namespace:
f"expected input file with .h5part extension, not {args.input}"
)
outfile = args.input[:-6] + "npz" # Replace `.h5part` with `.npz`.
if type(args.output) == str and args.output != "":
if isinstance(args.output, str) and args.output != "":
if args.output.endswith(".npz"):
outfile = args.output
else:
Expand Down

0 comments on commit 52323c9

Please sign in to comment.