CompuCell3D / cc3d-player5

CC3D Player 5
GNU Lesser General Public License v3.0
4 stars 4 forks source link

Player is loading numpy autmatically? #64

Open jpsluka opened 5 months ago

jpsluka commented 5 months ago

Is Player loading numpy automatically? If I add np.random.seed(423) to my python script it does not throw and error even though I did not load numpy.

But if I add numpy.random.seed(423) or random.seed(423) then it crashes (as expected) since those modules haven't been loaded.

This suggest that some part of Player is loading numpy.

tjsego commented 1 month ago

@maciekswat is this due to how run_cc3d_project executes project Python source, or some side effect of RollbackImporter? Either way, I'm not sure this is a bug or can be readily changed.

jpsluka commented 1 month ago

If it can't be changed, then it should be documented.