-
Notifications
You must be signed in to change notification settings - Fork 4
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
Energy Balance is read out incorrectly if sim has not yet sarted #176
Comments
I doubt there is a description that was designed for this situation, so @jessegreenberg will work on adding some handling for it, then run it by the design group at our next meeting. |
Currently the description is determined from Is this expected, or should this part of the model change? If this is expected we can handle this case in a special way for the description. But I think the descriptions would be correct if the @jbphet what do you think? |
The design team discussed this in our 6/22/2022 meeting and decided that if sunlight is off the description should only include the part that says, "Energy Balance added to Observation Window" and omit the part that says, for example, "Outgoing energy is less than incoming energy at top of atmosphere, net energy inflow to Earth". It just feels a bit odd to have it say that the energy is in balance if there isn't any. It would be technically true, but not very useful. Then, once the sunlight is started and the energy balance changes, there should be an alert that says this, basically saying "Outgoing energy is less than incoming energy at top of atmosphere, net energy inflow to Earth". |
I have this mostly working as desired, but while testing it I ran into one odd and hard-to-reproduce case. Here is the sequence needed to reproduce. The timing matters, so read through it before doing it if you intend to try it.
There are other, similar scenarios that can be created, but this is one of the easiest to reproduce. After looking through the code, I think what's going on here is that the I think the best solution to this is probably to reset |
@jessegreenberg - I think I have this working, but I'd like you to take a look at the changes before the next steps. My biggest question is about resetting the concentration describer. To fix the problem described in the previous comment, I ended up wiring through a way to reset the If this seems good, please assign to @arouinfar and @Matthew-Moore240 to review the behavior. |
Ah, that makes sense with this approach. Thanks for catching/adding. Should these "previous" value variables be reset here as well or were they intentionally excluded?
|
Thanks @jessegreenberg - I've added those to the reset method. |
@arouinfar - Please check the behavior and make sure that it is what we want based on the design team discussion above. If so, this can be closed. |
Looks good, thanks @jbphet |
Reopening, since I thought it would be good to have QA double check this during a dev test that is currently being set up. |
This looks fixed in a11y view |
Test device
Dell
Operating System
Win 11
Browser
Chrome
Problem description
For phetsims/qa#811
If you turn on the Energy Balance graph before you start the sunlight in the sim, an alert will play saying there is a net inflow of energy. This is true once you start the sunlight, but before then the graph is blank and there is no information available as no actions are happening yet.
Visuals
Troubleshooting information:
!!!!! DO NOT EDIT !!!!!
Name: Greenhouse Effect
URL: https://phet-dev.colorado.edu/html/greenhouse-effect/1.1.0-dev.9/phet/greenhouse-effect_en_phet.html?screens=1&postMessageOnLoad&postMessageOnError&supportsInteractiveDescription=true
Version: 1.1.0-dev.9 2022-06-08 20:37:50 UTC
Features missing: applicationcache, applicationcache, touch
Flags: pixelRatioScaling
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
Language: en-US
Window: 1280x649
Pixel Ratio: 1.5/1
WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium)
GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)
Vendor: WebKit (WebKit WebGL)
Vertex: attribs: 16 varying: 30 uniform: 4096
Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32)
Max viewport: 32767x32767
OES_texture_float: true
Dependencies JSON: {}
The text was updated successfully, but these errors were encountered: