Skip to content

Fix double-negative error message in TransferFunction call#1061

Merged
baggepinnen merged 1 commit into
masterfrom
fix/freqresp-tf-discrete-error-message
May 16, 2026
Merged

Fix double-negative error message in TransferFunction call#1061
baggepinnen merged 1 commit into
masterfrom
fix/freqresp-tf-discrete-error-message

Conversation

@baggepinnen
Copy link
Copy Markdown
Member

Summary

The discrete-only call methods for TransferFunction threw ArgumentError("It only makes no sense to call this function with discrete systems") — a double negative whose plain reading is the opposite of the actual requirement.

Rephrase to "This function can only be called with discrete-time systems". Logic unchanged.

Test plan

  • Call tf(1,[1,1])(0.5, false) (continuous) and confirm the message is the new wording.

🤖 Generated with Claude Code

The discrete-only call methods for TransferFunction threw an
ArgumentError with the message "It only makes no sense to call this
function with discrete systems" — a double negative that asserts the
opposite of the actual requirement.

Rephrase to "This function can only be called with discrete-time
systems".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@JuliaControlBot
Copy link
Copy Markdown

This is an automated message.
Plots were compared to references. 4/11 images have changed, see differences below.
After pulling this PR, please update the reference images by creating a PR to ControlExamplePlots.jl here.

Difference Reference Image New Image
✔️ 0.0 Reference New
✔️ 0.0 Reference New
✔️ 0.0 Reference New
✔️ 0.0 Reference New

@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.61%. Comparing base (0aa6e4c) to head (850883f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1061   +/-   ##
=======================================
  Coverage   91.61%   91.61%           
=======================================
  Files          42       42           
  Lines        5653     5653           
=======================================
  Hits         5179     5179           
  Misses        474      474           

☔ 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.

@baggepinnen baggepinnen merged commit 535cbb5 into master May 16, 2026
6 checks passed
@baggepinnen baggepinnen deleted the fix/freqresp-tf-discrete-error-message branch May 16, 2026 03:57
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