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

examples.md #54

Open
pixelzoom opened this issue Aug 19, 2024 · 3 comments
Open

examples.md #54

pixelzoom opened this issue Aug 19, 2024 · 3 comments

Comments

@pixelzoom
Copy link
Contributor

This issue is to collect all of the sim-specific things that should be mentioned in examples.md.

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Aug 19, 2024

@pixelzoom
Copy link
Contributor Author

Related to #90 ...

  • Mention that if radio buttons under modelRadioButtonGroup are hidden, then you should also consider hiding continuumBarNode.

@pixelzoom
Copy link
Contributor Author

pixelzoom commented Jan 13, 2025

Related to PhET-iO instrumentation of Spectrometer snapshots...

Model:

Snapshots are model.spectrometer.snapshots and they are of type ObservableArray<SpectrometerSnapshotIO>. The value of an ObservableArray cannot be displayed in Studio. So if you want to get the snapshots, you can use the getPhetioElementState command in the browser console. For example:

await phetioClient.invokeAsync( 'phetioEngine', 'getPhetioElementState', [ 'modelsOfTheHydrogenAtom.spectraScreen.model.spectrometer.snapshots' ] )

View:

The snapshots dialog is capable of displaying 4 snapshots. The elements that display these snapshots are referred to as "snapshot nodes" and they have tandem names 'snapshotNode0', 'snapshotNode1', 'snapshotNode2', and 'snapshotNode3'. They appear in the dialog from top to bottom - 'snapshotNode0' is always the top snapshot, 'snapshotNode3' is always the bottom snapshot. The numbers in the tandem name do not correspond to the snapshot numbers shown in the user interface. When you delete a snapshot (by pushing the trash button) the snapshots that remain are reloaded into the snapshot nodes, and the snapshot nodes that do not have associated snapshots become invisible.

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

No branches or pull requests

1 participant