marl / marl/SpatialScaper

Max recursion limit exceeded

Open
#76 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Jupyter Notebook
Stars
78
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Changing the mean number of events `N_EVENTS_MEAN` or `DURATION` in the example_generation.py script leads to max recursion errors. The error looks as follows:

```
with os.scandir(dirname) as it:
RecursionError: maximum recursion depth exceeded while calling a Python object
```

Looks like in my case the error happens when I want to generate events with `max_event_overlap=1` and I place too many events on average for a given duration.

Contributor guide

No contributing guide indexed for this repository

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 with example_generation.py and reproduce the failure by changing N_EVENTS_MEAN or DURATION, especially with max_event_overlap=1. Trace the event-generation path until the RecursionError appears and verify that the same inputs complete without exceeding the recursion limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.