Repository navigation
Conversation
|
This looks fine to me. Let's make sure tests pass and then happy to merge :) Thanks for the contribution. |
|
Failure is currently related to our data repository having some flakiness issues. We will try to get that sorted to ensure this is working with IO tests. |
|
@zm711 @h-mayorquin ok to merge this and close #1908 ? |
…lynx recording Folds the warning from NeuralEnsemble#1908 into this branch, so the unclosed-recording case both leaves `recording_closed` unset and tells the user why, instead of parsing the sentinel text through dateutil. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Done — pushed if sr:
dt2 = sr.groupdict()
if (dt2["date"], dt2["time"]) == ("File", "was"):
# Cheetah writes this in place of the close time, see #1901
warnings.warn("Text header does not contain recording closed time. File was not closed properly.")
else:
self["recording_closed"] = dateutil.parser.parse(f"{dt2['date']} {dt2['time']}")The test now wraps the call in Happy for this to supersede #1908 — I'll leave that one to @HectorBC and close it if you prefer, since it's your call which of the two lands first. Re the IO tests: understood, no action needed from me on the data-repo flakiness — the parsing itself no longer routes the sentinel string through |
|
We'll merge this one. I talked to Heberto, so we will close #1908 and keep this one. Let me update and hope that the tests run which would be nice. But we can also get @h-mayorquin to maybe run a test data set against this if he has anything since he has worked on Neuralynx most recently. |
Closes #1901
Summary
File was not properly closedsentinelrecording_closedunavailable instead of passing the sentinel todateutil.parserTesting
python -m pytest -q neo/test/rawiotest/test_neuralynxrawio.py::TestNlxHeaderParsing::test_unclosed_recordingpython -m black --check neo/rawio/neuralynxrawio/nlxheader.py neo/test/rawiotest/test_neuralynxrawio.py