What is the problem this work solves, including
closes #61
there was a bug where we were using the starting concentration of B instead of the live concentration of B to calculate the Kd. So reworking that required changes to how we're storing the data
Solution
This data is a series of arrays that are all matched in indices. I did this instead of storing this data as an object that I then have to unpack as separate arrays for the plots. I do have to go over them once to make sure all the data has the correct index, but they also have to be sorted in order of the reactantConcentrations, so I'm saving one pass over the data by storing it way.
equilibriumData
inputConcentrations
reactantConcentrations (new array)
productConcentrations
timeToEquilibrium (new array, needed to store the dots on the product conc over time plot)
colors (new array, it's created by the inputConcentrations, and then the index for other arrays is used to sync colors
kd added because it was needed in more than one component
graphs:
product over time
time v productOverTimeArraytimeToEquilibrium v productConcentrations ==> shows dots were the user stored a value
Concentration at equilibrium
reactantConcentrations v productConcentrations
Type of change
Please delete options that are not relevant.
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Problem
Estimated review size: large
What is the problem this work solves, including closes #61 there was a bug where we were using the starting concentration of B instead of the live concentration of B to calculate the Kd. So reworking that required changes to how we're storing the data
Solution
This data is a series of arrays that are all matched in indices. I did this instead of storing this data as an object that I then have to unpack as separate arrays for the plots. I do have to go over them once to make sure all the data has the correct index, but they also have to be sorted in order of the reactantConcentrations, so I'm saving one pass over the data by storing it way.
equilibriumData
inputConcentrations reactantConcentrations (new array) productConcentrations timeToEquilibrium (new array, needed to store the dots on the product conc over time plot) colors (new array, it's created by the inputConcentrations, and then the index for other arrays is used to sync colors kd added because it was needed in more than one componentgraphs:
product over time
time
vproductOverTimeArray
timeToEquilibrium
vproductConcentrations
==> shows dots were the user stored a valueConcentration at equilibrium
reactantConcentrations
vproductConcentrations
Type of change
Please delete options that are not relevant.
Steps to Verify:
Screenshots (optional):