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

scene preview keeps updating in notebook #672

Open
naperman opened this issue Nov 21, 2024 · 1 comment
Open

scene preview keeps updating in notebook #672

naperman opened this issue Nov 21, 2024 · 1 comment

Comments

@naperman
Copy link

I'm running the SionnaRT Intro notebook.

There are several calls to scene.preview() in the following order as we progress through the cells:

  1. Just the imported and loaded scene
  2. Scene + Transmitter + Receiver
  3. Scene + Transmitter + Receiver + Computed paths
  4. Scene + Transmitter + Receiver + Computed paths + Coverage Map

and so on.

The problem is when we reach say the i'th preview, then all the previous previews are updated with the contents of i'th preview. For example, when we get to the coverage map preview(4th), the first preview which ought to show only the plain loaded scene, is showing everything including tx/rx locations, paths and coverage map.

This happen even when i set the following options for the first preview to disable tx/rx, computed paths and coverage map.
scene.preview(show_paths=False, show_devices=False, show_orientations=False, coverage_map=None)

Is there any way to show only what is required in each preview call without letting subsequent preview call update the previous previews?

I'm using sionna v0.19 and running the notebook on vscode 1.94.2.

@merlinND
Copy link
Collaborator

Hello @naperman,

Currently this is the expected behavior because there's a single "preview widget" that gets reused in each call to scene.preview().
However I understand your point, and we may consider changing this behavior in a future version. I'll leave this issue open as a reminder.

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