We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f015ed8 commit 1c709bbCopy full SHA for 1c709bb
nibabel/loadsave.py
@@ -60,7 +60,7 @@ def _signature_matches_extension(filename, sniff):
60
sniff = fh.read(len(expected_signature))
61
except OSError:
62
return False, f"Could not read file: {filename}"
63
- if not sniff.startswith(expected_signature):
+ if sniff.startswith(expected_signature):
64
return True, ""
65
format_name = signatures[ext]["format_name"]
66
return False, f"File {filename} is not a {format_name} file"
0 commit comments