labs icon indicating copy to clipboard operation
labs copied to clipboard

Unexpected behaviors running experiments in Python simulation models

Open AlABarazi opened this issue 3 years ago • 2 comments

Describe the bug

The problem occurs in this simulation when I run an experiment. Running the simulation as an experiment delete some of the agents and behaviours and thus wrong results . The normal run (200 steps) should look like this https://user-images.githubusercontent.com/7549404/232717172-dce44228-3383-44a0-bcb1-40fb71b9c73a.mov The balls (workers) move to the blue grids (walls). The simulation also has black squares agents (external walls) and some other agents.

The video below show the run from the experiment (200 steps) https://user-images.githubusercontent.com/7549404/232717124-1f7e7251-d5cf-4b68-8643-440179388ca5.mov

With the following issues :

  • Balls are not moving
  • External walls are not there
  • Some of agents are deleted

To reproduce

  1. go to https://core.hash.ai/@alaabarazi/actorexperiment/main
  2. select experiments
  3. click on ex from the menu
  4. wait
  5. when the run is done, click on view to the see the results

compare this when the normal run of the simulation

Expected behavior

Experiment should not delete some agents and their behaviours. The run from experiment should look quite similar to the normal run of the simulation.

Project URL

https://core.hash.ai/@alaabarazi/actorexperiment/main

Device

Macos pro 2019

Operating system

13.2.1 (22D68)

Browser

Version 111.0.5563.146 (Official Build) (x86_64)

Additional context

No response

AlABarazi avatar Apr 18 '23 08:04 AlABarazi

I removed all Python imports from the code (Re, datetime, numpy, ..etc ). The model does not have any imports now. This did not solve the problem.

AlABarazi avatar Apr 20 '23 10:04 AlABarazi

Related issues: https://github.com/hashintel/labs/issues/22 and https://github.com/hashintel/hash/issues/2471

vilkinsons avatar Apr 21 '23 09:04 vilkinsons