Closed zepumph closed 1 year ago
if ( assert ) {
for ( const protonNumber in HalfLifeConstants ) {
for ( const neutronNumber in HalfLifeConstants[ protonNumber ] ) {
console.log( protonNumber, neutronNumber );
}
}
}
I added the assertions above. @Luisav1 will you please help me understand why one has an entry for 0,0 HalfLifeConstants
, but DECAYS_INFO_TABLE
does not?
It meant that I needed to add this guard, but I would rather not need this. Can you take a look? Can we make this consistent?
I added the assertions above. @Luisav1 will you please help me understand why one has an entry for 0,0 HalfLifeConstants, but DECAYS_INFO_TABLE does not?
What a can of worms I opened up here!!!?!?!! @Luisav1 and I will take care of this over in https://github.com/phetsims/build-a-nucleus/issues/169. Closing
We should write an assertion that makes sure that these entries match. Even if they are
null
or-1
for "unknown".