Skip to content

BUG: gammatone_c C extension signature mismatch (test_gammatone failures) #26

Description

@Hugo-W

Summary

tests/test_gammatone.py has 2 failing tests:

  • test_gammatone.c_gammatone
  • test_gammatone.gammatone_c_from_extension

Error

TypeError: function takes at most 8 arguments (9 given)

The test calls gammatone_c.gammatone_c(...) with 9 arguments, but the compiled C extension accepts only 8.

Location

  • tests/test_gammatone.py:35 (doctest)
  • pyeeg/gammatone_c/ (compiled extension)

Likely cause

The Python-side call signature and the C-side function signature are out of sync — either the C extension needs to be rebuilt/regenerated, or the test call needs to match the current C signature.

Reproduction

uv run pytest tests/test_gammatone.py -q

Note

This is a pre-existing failure, unrelated to the TRF stats fix in issue #25.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions