Skip to content

Conversation

@goerz
Copy link
Member

@goerz goerz commented Sep 30, 2025

The via=:tau option for make_chi requires that J_T takes a tau keyword argument. For the default "automatic" keyword for via, this should be checked explicitly via introspection. Otherwise, the naive definition of a J_T function by a user that does not use tau even though the functional is defined in terms of target states leads to a hard-to-understand error.

@goerz goerz added the bug Something isn't working label Sep 30, 2025
The `via=:tau` option for `make_chi` requires that `J_T` takes a `tau`
keyword argument. For the default "automatic" keyword for `via`, this
should be checked explicitly via introspection. Otherwise, the naive
definition of a `J_T` function by a user that does not use `tau` even
though the functional is defined in terms of target states leads to a
hard-to-understand error.
@codecov
Copy link

codecov bot commented Sep 30, 2025

Codecov Report

❌ Patch coverage is 87.75510% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.0%. Comparing base (423c611) to head (47286dc).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/functionals.jl 85.4% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master     #90     +/-   ##
========================================
- Coverage    88.2%   88.0%   -0.2%     
========================================
  Files          19      19             
  Lines        1013    1053     +40     
========================================
+ Hits          893     926     +33     
- Misses        120     127      +7     

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

@goerz goerz merged commit 604eb03 into master Sep 30, 2025
5 checks passed
@goerz goerz deleted the make-chi branch September 30, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants