@datagrok/compute 1.14.3 → 1.15.1

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/files/cars.csv ADDED
@@ -0,0 +1,6 @@
1
+ model,mpg,cyl,disp,hp,drat,wt,qsec,vs,am,gear,carb
2
+ Mazda RX4,21.0,6,160,110,3.90,2.620,16.46,0,1,4,4
3
+ Mazda RX4 Wag,21.0,6,160,110,3.90,2.875,17.02,0,1,4,4
4
+ Datsun 710,22.8,4,108,93,3.85,2.320,18.61,1,1,4,1
5
+ Hornet 4 Drive,21.4,6,258,110,3.08,3.215,19.44,1,0,3,1
6
+ Hornet Sportabout,18.7,8,360,175,3.15,3.440,17.02,0,0,3,2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@datagrok/compute",
3
3
  "friendlyName": "Compute",
4
- "version": "1.14.3",
4
+ "version": "1.15.1",
5
5
  "author": {
6
6
  "name": "Aufar Zakiev",
7
7
  "email": "aufar.zakiev@softwarecountry.com"
@@ -13,7 +13,7 @@
13
13
  "directory": "packages/Compute"
14
14
  },
15
15
  "dependencies": {
16
- "@datagrok-libraries/compute-utils": "^1.14.3",
16
+ "@datagrok-libraries/compute-utils": "^1.15.1",
17
17
  "cash-dom": "latest",
18
18
  "datagrok-api": "^1.16.3",
19
19
  "dayjs": "=1.11.7",
@@ -0,0 +1,16 @@
1
+ //name: cars
2
+ //description: Demonstrates value lookup
3
+ //language: javascript
4
+ //input: string model { choices: OpenFile("System:AppData/Compute/cars.csv"); propagateChoice: all }
5
+ //input: double mpg
6
+ //input: int cyl
7
+ //input: int disp
8
+ //input: int hp
9
+ //input: double drat
10
+ //input: double wt
11
+ //input: double qsec
12
+ //output: double mpgPerCylinder
13
+ //output: double acc
14
+
15
+ mpgPerCylinder = mpg / cyl;
16
+ acc = hp / wt;
@@ -9,7 +9,7 @@
9
9
  //input: double heatCap = 4200 {caption: Heat capacity; units: J/C; category: Object properties}
10
10
  //input: double heatTransferCoeff = 8.3 {caption: Heat transfer coefficient; units: W/(m² * C); category: Object properties}
11
11
  //input: int simTime = 21600 {caption: Simulation time; units: sec; category: Simulation}
12
- //output: dataframe simulation {caption: Temp. vs time dependency; category: Output; viewer: Line chart(block: 75) | Grid(block: 25)}
12
+ //output: dataframe simulation {caption: Temp. vs time; category: Output; viewer: Line chart(block: 75) | Grid(block: 25)}
13
13
  //output: double timeToCool {caption: Time to cool; units: sec.; category: Output}
14
14
  //output: double coolingFactor {caption: Cooling factor; units: 1 / sec.; category: Calculations}
15
15
  //output: double tempDiff {caption: Temperature difference; units: C; category: Calculations}
package/scripts/pkpd.R CHANGED
@@ -18,7 +18,6 @@
18
18
  #meta.runOnOpen: true
19
19
  #meta.runOnInput: true
20
20
 
21
-
22
21
  require("ggplot2")
23
22
  require("RxODE")
24
23
 
package/scripts/vmax.js CHANGED
@@ -1,8 +1,7 @@
1
1
  //name: Vmax
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
- //tags: filtration, scale-up
5
- //meta.department: BTDS
4
+ //tags: filtration, scale-up, model
6
5
  //meta.status: Upstream
7
6
  //input: dataframe inputTable {caption: Input table; viewer: OutliersSelectionViewer(block: 25) | Scatter Plot(y: "t/V (hr/(L/m²))", block: 75, filter: "!${isOutlier}", showFilteredOutPoints: "true", filteredOutRowsColor: 4293991195, showRegressionLine: "true", markers: "isOutlier", lassoTool: "true", legendVisibility: "Never", filterByZoom: "false")}
8
7
  //input: dataframe reportingParameters {caption: Reporting parameters; viewer: Grid()}
@@ -22,10 +21,6 @@
22
21
  //meta.runOnOpen: true
23
22
  //meta.runOnInput: true
24
23
 
25
-
26
- // inputTable = grok.shell.tables[0]; reportingParameters = grok.shell.tables[1];
27
- // testFilterArea = 3.5; desiredVolumeOfBatch = 25; desiredProcessTime = 0.5; sf = 1.5;
28
-
29
24
  const COL_NAMES = {
30
25
  INPUT_TIME_IN_MINUTES: "time (min)",
31
26
  INPUT_VOLUME_IN_MILLILITERS: "filtrate volume (mL)",
package/src/package.ts CHANGED
@@ -33,7 +33,7 @@ export function importScriptGenerator(){
33
33
  //name: OutliersSelectionViewer
34
34
  //description: Creates an outliers selection viewer
35
35
  //tags: viewer
36
- //output: viewer
36
+ //output: viewer result
37
37
  export function OutliersSelection() {
38
38
  return new OutliersSelectionViewer();
39
39
  }