@datagrok/compute 1.6.4 → 1.7.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": "1.6.4",
4
+ "version": "1.7.2",
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.6.4",
16
+ "@datagrok-libraries/compute-utils": "^1.7.2",
17
17
  "cash-dom": "latest",
18
18
  "datagrok-api": "^1.14.0",
19
19
  "dayjs": "latest",
@@ -13,6 +13,8 @@
13
13
  //input: double timeStart = 0
14
14
  //input: double timeStop = 18
15
15
  //output: dataframe df {viewer: Line Chart(x: "Time", multiAxis: "true", title: "Lotka-Volterra Model")}
16
+ //meta.runOnOpen: true
17
+ //meta.runOnInput: true
16
18
 
17
19
 
18
20
  function sumArrays(...arrays) {
@@ -5,5 +5,8 @@
5
5
  //input: dataframe inputDf {caption: Input dataframe; viewer: Grid()}
6
6
  //output: dataframe outputDf {caption: Output dataframe; viewer: Line chart(block: 50) | Scatter plot(block: 50) | Statistics(block: 100); category: Stats}
7
7
  //editor: Compute:RichFunctionViewEditor
8
+ //meta.runOnOpen: true
9
+ //meta.runOnInput: true
10
+
8
11
 
9
12
  outputDf = inputDf.clone();
@@ -2,8 +2,8 @@
2
2
  //description: Uses Newton's law of cooling to simulate object cooling process. Default values are for cube of boiling water in air.
3
3
  //language: javascript
4
4
  //tags: simulation, demo
5
- //input: double ambTemp = 22 {caption: Ambient temperature; units: C; category: Environment}
6
- //input: double initTemp = 100 {caption: Initial temperature; units: C; category: Environment}
5
+ //input: double ambTemp = 22 {caption: Ambient temperature; units: C; category: Environment; block: 50}
6
+ //input: double initTemp = 100 {caption: Initial temperature; units: C; category: Environment; block: 50}
7
7
  //input: double desiredTemp = 30 {caption: Desired temperature; units: C; category: Environment}
8
8
  //input: double area = 0.06 {caption: Surface area; units: m²; category: Object properties}
9
9
  //input: double heatCap = 4200 {caption: Heat capacity; units: J/C; category: Object properties}
@@ -15,6 +15,8 @@
15
15
  //output: double tempDiff {caption: Temperature difference; units: C; category: Calculations}
16
16
  //editor: Compute:RichFunctionViewEditor
17
17
  //meta.uploadMode: true
18
+ //meta.runOnOpen: true
19
+ //meta.runOnInput: true
18
20
 
19
21
  timeToCool = undefined;
20
22
 
@@ -9,6 +9,9 @@
9
9
  //output: double finalConcentration
10
10
  //meta.domain: Manufacturing
11
11
  //meta.modality: Small molecule
12
+ //meta.runOnOpen: true
13
+ //meta.runOnInput: true
14
+
12
15
 
13
16
  function sigmoid(z) {
14
17
  return 1 / (1 + Math.exp(-z));
@@ -8,6 +8,8 @@
8
8
  //input: double res = 8 [Largest n-cycle visible]
9
9
  //output: dataframe df {viewer: Scatter plot(title: "Logistic map")}
10
10
  //meta.domain: Nonlinear dynamics
11
+ //meta.runOnOpen: true
12
+ //meta.runOnInput: true
11
13
 
12
14
  function getRandomNumberInRange(min, max) {
13
15
  return Math.random() * (max - min) + min;
@@ -10,6 +10,7 @@
10
10
  //input: double z0 = 1.05 [Initial conditions for distortion (from linearity) of the vertical temperature profile]
11
11
  //output: dataframe df {caption: Lorenz attractor; viewer: 3d Scatter plot())}
12
12
  //editor: Compute:RichFunctionViewEditor
13
+ //meta.runOnOpen: true
13
14
  //meta.runOnInput: true
14
15
 
15
16
  function lorenzEquations(x, y, z, s=10, r=28, b=2.667) {
package/scripts/pkpd.R CHANGED
@@ -13,6 +13,9 @@
13
13
  #output: graphics PKPD
14
14
  #output: double Cmax {units: nM}
15
15
  #meta.domain: PKPD
16
+ #meta.runOnOpen: true
17
+ #meta.runOnInput: true
18
+
16
19
 
17
20
  require("ggplot2")
18
21
  require("RxODE")
package/scripts/trig.js CHANGED
@@ -6,6 +6,9 @@
6
6
  //output: double cos
7
7
  //output: double tan
8
8
  //meta.domain: math
9
+ //meta.runOnOpen: true
10
+ //meta.runOnInput: true
11
+
9
12
 
10
13
  sin = Math.sin(x);
11
14
  cos = Math.cos(x);
package/scripts/vmax.js CHANGED
@@ -19,6 +19,10 @@
19
19
  //output: dataframe sampleCharacteristics {viewer: Grid(block: 25, showColumnLabels: false, showRowHeader: false); caption: Sample characteristics; category: OUTPUT}
20
20
  //output: dataframe filter {viewer: Grid(block: 25, showColumnLabels: false, showRowHeader: false); caption: Filter; category: OUTPUT}
21
21
  //editor: Compute:ComputationView
22
+ //meta.runOnOpen: true
23
+ //meta.runOnInput: true
24
+
25
+
22
26
  // inputTable = grok.shell.tables[0]; reportingParameters = grok.shell.tables[1];
23
27
  // testFilterArea = 3.5; desiredVolumeOfBatch = 25; desiredProcessTime = 0.5; sf = 1.5;
24
28