Skip to content

Use dit's rng keyword for surrogates and Markov-order selection - #14

Merged
Autoplectic merged 1 commit into
mainfrom
dit-rng-keyword
Nov 9, 2026
Merged

Autoplectic merged 1 commit into
mainfrom
dit-rng-keyword

Conversation

@Autoplectic

Copy link
Copy Markdown
Member

dit #306 renamed prng to rng across dit. infoflow still passed prng= to whittle_surrogates, shift_surrogates, block_surrogates and select_markov_order in infoflow/te.py. Those calls work through dit's deprecation alias, which warns on every call and will be removed in dit 3.0. This switches them to rng=.

total_correlation_ksg already moved to rng= in #12, and the upstream alias fix (dit/dit#324) is closed. No other infoflow call passes a deprecated keyword to dit.

Checked:

  • Running transfer_entropy_test with the whittle, shift and block nulls, plus transfer_entropy(history_length="auto"), with the deprecation turned into an error: the previous code raises, this one doesn't.
  • Full suite: 277 passed, 10 skipped. ty and ruff are clean.

Made with Cursor

dit #306 renamed prng to rng; the old name still works through a deprecation
alias that warns and will be removed in dit 3.0.
@Autoplectic
Autoplectic merged commit 4558d2f into main Nov 9, 2026
10 checks passed
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