Closed oliver-phet closed 1 year ago
@oliver-phet this looks like an error on our part. It's going to take some digging to find the paper trail on what the desired behavior should be, but in the meantime please ask the user to use ?capacitorNumberDecimalPlaces=3
to correct things in the published version. Alternatively, they can use ?capacitanceStep=0.01
to reduce the increment of the tweaker buttons to match the number of decimals provided in the display. These were not intended to be a public-facing query parameters, just something we used in our own testing/model tuning but it works in the published version.
The capacitance range was determined in https://github.com/phetsims/circuit-construction-kit-common/issues/590, but the query parameters were introduced in https://github.com/phetsims/circuit-construction-kit-common/issues/780#issuecomment-974291874 when we were trying to address a situation with buggy inductors. We ended up keeping the capacitance values as they are and limiting the number of inductors instead. However, we kept the query parameters around, including the incongruent default values of capacitanceStep=0.001
and capacitorNumberDecimalPlaces=2
.
This is something we should be able to easily fix in a maintenance release, but there are two ways we could go:
capacitorNumberDecimalPlaces
to 3.capacitanceStep
to 0.01.Based on the decisions made in #590 we probably should go with option (2). However, there may have been some other reason for changing capacitanceStep
to 0.001 that I'm just not remembering. @ariel-phet @samreid do you recall?
@arouinfar I agree option (2) sounds like the right solution. I believe that was our intention. We have fine enough control with inductor values to tune in a resonant frequency.
Thanks @ariel-phet. Unless @samreid has objections, we should proceed with updating the capacitanceStep
default to 0.01 and publishing a MR of CCK: AC and CCK: AC - VL.
2/24/22 design meeting. We decided to proceed with option (2) and publish MR of CCK: AC and CCK: AC - VL. @samreid should also confirm that the slider thumb snaps to 0.01 increments. In Studio, using capacitanceStep=0.01
seems to behave as desired.
I changed the capacitanceStep to 0.01 and made it the slider thumb snap step as well. @arouinfar can you please verify the behavior on phettest before we create the maintenance releases? After the behavior is verified do we need any other steps such as QA involvement for this maintenance release?
@samreid looks good in master. The QA queue looks pretty quiet, so we can probably ask them to sanity check once you patch the release branch. This is a very minor change, so I am also fine with self-testing if you'd rather go that route.
@arouinfar can this be included with the next milestone of CCK (PhET-iO)? Or does it warrant an earlier separate maintenance release?
@samreid the PhET-iO milestones are all related to CCK: DC, and it will likely be quite some time before CCK: AC & CCK: AC - VL are republished off of master. Let's proceed with publishing maintenance releases of the AC flavors, as time allows.
On Thursday, @jonathanolson reported that he is working on maintenance releases. He said:
I'll be working on maintenance release things. Please don't do anything on maintenance branches without talking to me first!
I replied:
@jonathanolson Can I work on https://github.com/phetsims/circuit-construction-kit-common/issues/862 ?
On hold until we know more.
Maintenance complete that was blocking, feel free to move ahead!
Today's meeting: @arouinfar @matthew-blackman and me: If we are publishing AC within a couple of months, that's OK. But if it would be longer than that, we should cherry-pick that commit.
I feel it could be a couple of months before AC is published. So I'll add this to our team's backlog.
Oops, I recall @jonathanolson said another maintenance release is in progress. On hold until we get the all-clear.
@jonathanolson reported the other maintenance release is complete and we can proceed.
Build succeeded: Sim = circuit-construction-kit-ac Version = 1.0.11-rc.1 Brands = phet Locales = en
RCs are here: https://phet-dev.colorado.edu/html/circuit-construction-kit-ac/1.0.11-rc.1/phet/ https://phet-dev.colorado.edu/html/circuit-construction-kit-ac-virtual-lab/1.0.10-rc.2/phet/
@arouinfar can you please spot check them?
Thanks @samreid. I spot-checked the rc's and everything looks good.
I sent the build production commands over 10 minutes ago. Not sure why the build server takes so long.
Publications complete. @oliver-phet do we need to notify someone that wrote to phethelp?
User emailed via phethelp, though the 3 decimal place query parameter is likely still most useful to them.