Skip to content

meter: name the replacement when item assignment or load() is used - #2201

Open
float3 wants to merge 2 commits into
cuthbertLab:meter-speed-2026from
float3:help/meter-1972-loud-old-api
Open

float3 wants to merge 2 commits into
cuthbertLab:meter-speed-2026from
float3:help/meter-1972-loud-old-api

Conversation

@float3

@float3 float3 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

For #1972.

  • ms[i] = x raises a TypeError that says to use ms = ms.setIndex(i, value), and ms.load(...) a MeterException that says to use the constructor. Before, they raised "object is not subscriptable" and an AttributeError.
  • User's Guide chapter 55 uses x = x.partition(...) and setIndex instead of the in-place calls, and its two beatDuration outputs are FrozenDurations. It passes nbval.

ts.beatSequence.partition(6) on its own still does nothing, since Python cannot see that the result is dropped. help/meter-1972-rename makes that raise too.

AI-assisted (Claude)

ms[i] = x raised "object is not subscriptable" and ms.load() an
AttributeError.  Both now say what to use instead: setIndex() and the
constructor.
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 93.303% — float3:help/meter-1972-loud-old-api into cuthbertLab:meter-speed-2026. No base build found for cuthbertLab:meter-speed-2026.

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.

2 participants