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

PhET-iO instrumentation #38

Closed
pixelzoom opened this issue Dec 21, 2015 · 12 comments
Closed

PhET-iO instrumentation #38

pixelzoom opened this issue Dec 21, 2015 · 12 comments

Comments

@pixelzoom
Copy link
Contributor

In 12/21/2015 email, @ariel-phet wrote:

Kathy and I just discussed, and here is the current thought:

When Sam give's the green light that together is in a good place, we would like you to work on outfitting the first screen of Hooke's Law. Kathy was thinking about 10 hours of your time, so if outfitting goes quickly, feel free to go further in the sim, but with the first screen as the clear goal. If outfitting does not go quickly (obvious possibility), lets touch base as to progress after 10 hours.

@pixelzoom pixelzoom self-assigned this Dec 21, 2015
@pixelzoom pixelzoom changed the title PhET-io instrumentation PhET-iO instrumentation Dec 21, 2015
@pixelzoom
Copy link
Contributor Author

pixelzoom commented Dec 28, 2015

I'd like to see these issues addressed before this work proceeds:

(NOTE: All the of the above have been addressed and closed.)

@pixelzoom
Copy link
Contributor Author

At 1/7/16 status meeting, this task was deferred indefinitely.

@pixelzoom
Copy link
Contributor Author

This is back on, assigned to @samreid and me to work on. @kathy-phet is getting info on what needs to be instrumented.

@pixelzoom
Copy link
Contributor Author

I did a few things to prepare for instrumentation: #48, #49, #50, #51.

@samreid let me know if there's any other "general" things that I should consider.

pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
@samreid
Copy link
Member

samreid commented Jun 7, 2018

Instrumentation looks like it is going well so far--I'm around for a while if you'd like me to tag along.

pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
@kathy-phet
Copy link

kathy-phet commented Jun 7, 2018 via email

pixelzoom added a commit to phetsims/scenery-phet that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom referenced this issue in phetsims/sun Jun 7, 2018
pixelzoom referenced this issue in phetsims/sun Jun 7, 2018
@pixelzoom
Copy link
Contributor Author

Basic instrumentation is done (tandems propagated). Ready to instrument specific Properties, etc. when @kathy-phet provides requirements.

pixelzoom added a commit that referenced this issue Jun 7, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
@samreid
Copy link
Member

samreid commented Jun 8, 2018

For labeled UI components, I'd recommend naming the tandem to match the english text that appears on the label. For instance, the top radio button is labeled "Bar Graph", but the tandem is energyBarRadioButton--it should be barGraphRadioButton. This may include renaming vars or (lowercase) properties to match the tandems, where appropriate.

Also, I've committed initial work to phet-io-wrapper-hookes-law-energy, please be aware of the work there and update/change phetioIDs if they are changed in the simulation.

pixelzoom added a commit that referenced this issue Jun 8, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 8, 2018
…trols, #38

Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
@pixelzoom
Copy link
Contributor Author

pixelzoom commented Jun 8, 2018

I renamed tandems, types and enums to match the labels that appear on controls. For example, for the "Force Plot" radio button, the tandem is now "forcePlotRadioButton", the enum value is "forcePlot", and the type is ForcePlot. I did this for the "Bar Graph", "Energy Plot" and "Force Plot" radio buttons. I review all calls to createTandem and didn't see any other cases where this needed to be done. @samreid feel free to take a peek.

pixelzoom added a commit that referenced this issue Jun 8, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
@pixelzoom
Copy link
Contributor Author

pixelzoom commented Jun 8, 2018

In the above commit, I instrumented the model Properties in RoboticArm and Spring. Questions and concerns for @samreid to review:

  • After doing this, phet-io-wrapper-hookes-law-energy now fails with Assertion failed: cannot start event while event is in progress when dragging either the arm or the displacement slider.

  • Check my use of the units option.

  • I was unclear on how to instrument DerivedProperty. Looks like phetioType is required, but there was nothing to validate that, and omitting resulted in a hard failure, see failure to check phetioType in PhetioObject tandem#56. Did I end up doing this correctly?

  • Is the convention to group phet-io modules with a // phet-io modules comment? I looked for examples, but didn't see any consistent pattern. See https://github.com/phetsims/phet-io/issues/1331
    (EDIT: Convention is now // ifphetio.)

pixelzoom added a commit that referenced this issue Jun 8, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 8, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
pixelzoom added a commit that referenced this issue Jun 8, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
@samreid
Copy link
Member

samreid commented Jun 11, 2018

After doing this, phet-io-wrapper-hookes-law-energy now fails with Assertion failed: cannot start event while event is in progress when dragging either the arm or the displacement slider.

Tracked in #52, and another solution is in place, see phetsims/tandem#57

Check my use of the units option.

Usage of units looks good, and appears properly in studio.

I was unclear on how to instrument DerivedProperty. Looks like phetioType is required, but there was nothing to validate that, and omitting resulted in a hard failure, see phetsims/tandem#56. Did I end up doing this correctly?

Work is being done in phetsims/tandem#56

Is the convention to group phet-io modules with a // phet-io modules comment? I looked for examples, but didn't see any consistent pattern. See https://github.com/phetsims/phet-io/issues/1331
(EDIT: Convention is now // ifphetio.)

Addressed as described in preceding comments.

@samreid samreid removed their assignment Jun 11, 2018
pixelzoom added a commit that referenced this issue Jun 14, 2018
Signed-off-by: Chris Malley <cmalley@pixelzoom.com>
@pixelzoom
Copy link
Contributor Author

Further work on instrumentation has moved to #58.

Closing.

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

3 participants