mesa / mesa/mesa-frames

[Feature]: Easy seed accessor across the entire codebase

Open
#159 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature good first issue Sprints!
Dominant language
Python
Stars
42
Forks
18
Avg merge
1m
Merged PRs (30d)
1

Description

### 🤔 Problem Description

Users should use a single seed across the entire database and we should make it easy to change it and view it anywhere.
Currently is implemented in `ModelDF`, but it's not exposed as a property (also `AgentsDF` and `AgentSetPolars` should be able to access it)

### 💡 Proposed Solution

Create a property for all public classes (maybe a Seed Mixin?).

### 🔄 Alternatives Considered

_No response_

### ➕ Additional Context

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing seed implementation in ModelDF, then inspect the public AgentsDF and AgentSetPolars classes and any other public classes that need access. The work is complete when users can view and change one shared seed through a consistent property across the relevant public classes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.