@datagrok/compute 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@datagrok/compute",
3
3
  "friendlyName": "Compute",
4
- "version": "0.6.1",
4
+ "version": "0.6.2",
5
5
  "description": "",
6
6
  "dependencies": {
7
7
  "cash-dom": "latest",
package/scripts/vMaxJS.js CHANGED
@@ -2,8 +2,8 @@
2
2
  //description: Predict the minimum filter size required for the separation of effluent from bioreactors, given the constraints of batch size and total batch time based on a training dataset of time vs filtrate volume for a given filter type, filter area and pressure
3
3
  //language: javascript
4
4
  //tags: model, filtration
5
- //input: dataframe inputTable {viewer: OutliersSelectionViewer() | Scatter Plot(filter: "!${isOutlier}", showFilteredOutPoints: "true", filteredOutRowsColor: 4293991195, showRegressionLine: "true") | Grid()}
6
- //input: dataframe reportingParameters {viewer: Grid()}
5
+ //input: dataframe inputTable {caption: Input Table; viewer: OutliersSelectionViewer() | Scatter Plot(filter: "!${isOutlier}", showFilteredOutPoints: "true", filteredOutRowsColor: 4293991195, showRegressionLine: "true")}
6
+ //input: dataframe reportingParameters {caption: Reporting Parameters; viewer: Grid()}
7
7
  //input: double testFilterArea = 3.5 {caption: Test Filter Area; units: cm²} [Test Filter Area]
8
8
  //input: double desiredVolumeOfBatch = 25 {caption: Desired Batch Volume; units: L} [Desired Batch Volume]
9
9
  //input: double desiredProcessTime = 0.5 {caption: Desired Process Time; units: hr} [Desired Process Time]
@@ -120,7 +120,12 @@ fluxDecayDf = DG.DataFrame.fromColumns([
120
120
  DG.Column.fromList('bool', isOutlierCol.name, isOutlierCol.toList().slice(1, isOutlierCol.length - windowLength))
121
121
  ]);
122
122
 
123
- regressionTable = inputTable;
123
+ regressionTable = DG.DataFrame.fromColumns([
124
+ inputTable.col('time (min)'),
125
+ inputTable.col('filtrate volume (mL)'),
126
+ dfWithoutOutliers.col('t/V (hr/(L/m2))'),
127
+ isOutlierCol
128
+ ]);
124
129
  coefficients = [1.8, 4.32];//[4.32, 1.8];//polynomialRegressionCoefficients(inputTable.col("time (min)"), dfWithoutOutliers.col("t/V (hr/(L/m2))"), 1);
125
130
  const trialThroughput = va.max;
126
131
  const flux = 9372.11;