Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can we replace a source with another one in a generated room #326

Open
sun-peach opened this issue Sep 29, 2023 · 1 comment
Open

how can we replace a source with another one in a generated room #326

sun-peach opened this issue Sep 29, 2023 · 1 comment

Comments

@sun-peach
Copy link

I need to test several individual sources in the same generated room. Now I iteratively generated the same room with the same parameters. Is there a way that we can replace the source with another in a generated room?

Thanks.

@fakufaku
Copy link
Collaborator

Hi @sun-peach , if you know all the source locations in advance, you can just generate everything all at once (add multiple sources to the room).

If the locations are not independent (e.g. you determine the next location from the simulation output), then the current best solution is as you do it now, i.e. recreate the room.
The simulation changes the state of the Room object and it is best to create a new one for a new simulation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants