Skip to content

[schelling_numpy] update lecture to latest numpy API - #338

Merged
jstac merged 1 commit into
mainfrom
schelling_numpy_numpy_updates
Jul 16, 2026
Merged

jstac merged 1 commit into
mainfrom
schelling_numpy_numpy_updates

Conversation

@kp992

@kp992 kp992 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor
  • Remove from numpy.random import uniform import
  • Replace np.random.seed() with np.random.default_rng() throughout
  • Add rng parameter to initialize_state() and move_agent(); replace uniform() calls with rng.random()

@kp992
kp992 requested a review from jstac July 15, 2026 22:21
@github-actions

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-338--incomparable-parfait-2417f8.netlify.app

Commit: ab9a8e4

📚 Changed Lectures


Build Info

@jstac

jstac commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Many thanks @kp992 , great to have this up to date. All looks good. Merging.

@jstac
jstac merged commit 3ab9153 into main Jul 16, 2026
2 checks passed
@jstac
jstac deleted the schelling_numpy_numpy_updates branch July 16, 2026 00:01
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