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 72ec76a commit c124cf5Copy full SHA for c124cf5
neo/rawio/neuralynxrawio/nlxheader.py
@@ -55,7 +55,13 @@ def _to_bool(txt):
55
("DspHighCutNumTaps", "", None),
56
("DspHighCutFilterType", "", None),
57
("DspDelayCompensation", "", None),
58
- ("DspFilterDelay_µs", "", None),
+ # DspFilterDelay key with flexible µ symbol matching
59
+ # Different Neuralynx versions encode the µ (micro) symbol differently:
60
+ # - Some files use single-byte encoding (latin-1): DspFilterDelay_µs (raw bytes: \xb5)
61
+ # - Other files use UTF-8 encoding: DspFilterDelay_µs (raw bytes: \xc2\xb5)
62
+ # When UTF-8 encoded µ (\xc2\xb5) is decoded with latin-1, it becomes "µ"
63
+ # This regex matches both variants: "µs" and "µs" but normalizes to "DspFilterDelay_µs"
64
+ (r"DspFilterDelay_[Â]?µs", "DspFilterDelay_µs", None),
65
("DisabledSubChannels", "", None),
66
("WaveformLength", "", int),
67
("AlignmentPt", "", None),
0 commit comments