Skip to content

feat: Add abfload3 to read DAC command waveforms from ABF files#73

Draft
google-labs-jules[bot] wants to merge 1 commit intomainfrom
feature/abfload3-dac-waveforms
Draft

feat: Add abfload3 to read DAC command waveforms from ABF files#73
google-labs-jules[bot] wants to merge 1 commit intomainfrom
feature/abfload3-dac-waveforms

Conversation

@google-labs-jules
Copy link
Contributor

This change introduces abfload3, a new function based on abfload2, to read additional data types from Axon Instruments ABF files. The new function is inspired by the capabilities of the swharden/pyABF Python library and is specifically designed to extract DAC command waveforms, which were not previously supported.

The key changes include:

  • Creation of abfload3.m with added logic to read DAC command waveforms from ABF version 2 files and append them as new analog channels.
  • Updates to +ndr/+format/+axon/read_abf.m and +ndr/+format/+axon/read_abf_header.m to use the new abfload3 function.

PR created automatically by Jules for task 14806485424088288401

This commit introduces `abfload3`, a new function based on `abfload2`, to read additional data types from Axon Instruments ABF files. The new function is inspired by the capabilities of the `swharden/pyABF` Python library and is specifically designed to extract DAC command waveforms, which were not previously supported.

The key changes include:
- Creation of `abfload3.m` with added logic to read DAC command waveforms from ABF version 2 files and append them as new analog channels.
- Updates to `+ndr/+format/+axon/read_abf.m` and `+ndr/+format/+axon/read_abf_header.m` to use the new `abfload3` function.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

%

[d,si,h]=abfload2(filename,'start',0,'stop',0.1,'doDispInfo',false);
[d,si,h]=abfload3(filename,'start',0,'stop',0.1,'doDispInfo',false);

Check warning

Code scanning / Code Analyzer

Value assigned to variable might be unused. Consider replacing the variable with ~ instead. Warning

Value assigned to variable might be unused. Consider replacing the variable with ~ instead.
%

[d,si,h]=abfload2(filename,'start',0,'stop',0.1,'doDispInfo',false);
[d,si,h]=abfload3(filename,'start',0,'stop',0.1,'doDispInfo',false);

Check warning

Code scanning / Code Analyzer

Value assigned to variable might be unused. Consider replacing the variable with ~ instead. Warning

Value assigned to variable might be unused. Consider replacing the variable with ~ instead.
@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2025

Test Results

32 tests   32 ✅  1s ⏱️
 4 suites   0 💤
 1 files     0 ❌

Results for commit 7e7b057.

@codecov
Copy link

codecov bot commented Oct 8, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 14.34%. Comparing base (8dbe8e2) to head (7e7b057).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
+ndr/+format/+axon/read_abf.m 0.00% 1 Missing ⚠️
+ndr/+format/+axon/read_abf_header.m 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #73   +/-   ##
=======================================
  Coverage   14.34%   14.34%           
=======================================
  Files          82       82           
  Lines        3402     3402           
=======================================
  Hits          488      488           
  Misses       2914     2914           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants