Closed chraibi closed 2 months ago
Your code looks fine on first glance, I’ll have a look at it.
@chraibi I need an runnable example that exhibits this behaviour. I created a test for this case and cannot reproduce the bug.
This test passes and this test should do the same as you have provided in your example https://github.com/PedestrianDynamics/jupedsim/blob/1732ea43c99a365b3cf9c0c27f9702869f1b59ac/systemtest/test_model_properties.py#L50-L81
@Ozaq: Thanks for taking the time!
I slightly adapted example1.py to reproduce this issue:
Just checked
agent.model.range_neighbor_repulsion
,
agent.model.range_geometry_repulsion
, and
agent.model.strength_geometry_repulsion
all get updated as expected. Only agent.model.strength_neighbor_repulsion
not.
Running the script in the link above gives me the following output:
Yeah I found that issue for strength_neighbor_repulsion
too when creating the test, this is already fixed on https://github.com/PedestrianDynamics/jupedsim/tree/1413-setting-parameters-of-collisionfreespeedmodelv2
In your original issue you mentioned that v0
would not update, could you reproduce this?
I plan on extending the test coverage for all models on this branch and the merging the fix.
No, v0
get updated.
Nice! Your fix works. Thank you!
I'm trying to change
strength_neighbor_repulsion
of the agents like soHowever, it seems I don't get it right and get as a result:
Edit: While
v0
gets updatedstrength_neighbor_repulsion
does not.Any idea what I'm doing wrong?