Skip to content

[Bug]: Synthetic event generator fails seed and validation tests #162

Description

@Deepthit-23

Affected Component

Other / Not sure

Bug Description

The event generator script utils/synthetic_event_generator.py does not support features expected by its tests:

  1. generate_event() does not accept the seed keyword parameter, throwing a TypeError during deterministic verification.
  2. generate_events() does not validate if interval_seconds is positive, failing to raise the expected ValueError.

Steps to Reproduce

Run the event generator tests:

python -m pytest tests/test_synthetic_event_generator.py -v


### Expected Behavior

- `generate_event` should accept a `seed` argument and seed the `random` module for deterministic generation.
- `generate_events` should reject invalid intervals by raising a `ValueError`.

### Actual Behavior

1. `test_generate_event_is_deterministic_with_seed` raises a `TypeError`:
TypeError: generate_event() got an unexpected keyword argument 'seed'

### Python Version

3.11

### Operating System

Windows 11

### Inference Device

None

### Error Log / Traceback

```shell

Screenshots or Recordings

No response

Additional Context

No response

Checklist

  • I have searched existing issues and this is not a duplicate.
  • I have tested with the latest version of the main branch.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions