Skip to content

swap argument order - #84

Merged
SpatLyu merged 9 commits into
stscl:mainfrom
SpatLyu:dev
Oct 3, 2026
Merged

SpatLyu merged 9 commits into
stscl:mainfrom
SpatLyu:dev

Conversation

@SpatLyu

@SpatLyu SpatLyu commented Oct 3, 2026

Copy link
Copy Markdown
Member

Previously, the APIs (ops and pc) accepted variable indice arguments in the order of (target, source). This PR reverses the parameter order to (source, target) to align with standard mathematical conventions ($x \rightarrow y$). This makes the API more intuitive, as it directly reflects the logic of "source predicts target".

BREAKING CHANGE: The argument order for the pattern causality analysis APIs (ops and pc) have been swapped. Users must update their function calls from func(data, target, source, ...) to func(data, source, target, ...).

@SpatLyu SpatLyu self-assigned this Oct 3, 2026
@SpatLyu
SpatLyu merged commit 5c84d44 into stscl:main Oct 3, 2026
6 checks passed
@SpatLyu SpatLyu mentioned this pull request Oct 3, 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.

1 participant