@datagrok/compute 0.9.1 → 0.9.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/dist/package.js +2 -1
- package/help/{outliers_selection/auto_detection_demo.gif → OutliersSelection/auto-detection-demo.gif} +0 -0
- package/help/{outliers_selection → OutliersSelection}/main.md +3 -2
- package/help/{outliers_selection/manual_selection_demo.gif → OutliersSelection/manual-selection-demo.gif} +0 -0
- package/package.json +12 -8
- package/scripts/default-complex.m +6 -31
- package/scripts/default.m +5 -26
- package/scripts/{Fab Arm Exchange.py → fab-arm-exchange.py} +0 -0
- package/scripts/{Heat Exchange.js → heat-exchange.js} +0 -0
- package/scripts/{IntervalsFromECG.py → intervals-from-ecg.py} +0 -0
- package/scripts/{Logistic Map.js → logistic-map.js} +0 -0
- package/scripts/{Lorenz Attractor.js → lorenz-attractor.js} +0 -0
- package/scripts/{Maximal Volume.R → maximal-volume.R} +0 -0
- package/scripts/{popPK.R → pop-pk.R} +0 -0
- package/src/model-handler.ts +1 -0
|
File without changes
|
|
@@ -13,7 +13,7 @@ It returns
|
|
|
13
13
|
3) Enter the reason why the selected plot points are considered as outliers
|
|
14
14
|
4) Click `OK`
|
|
15
15
|
|
|
16
|
-
<img src="https://raw.githubusercontent.com/datagrok-ai/public/master/packages/Compute/help/
|
|
16
|
+
<img src="https://raw.githubusercontent.com/datagrok-ai/public/master/packages/Compute/help/OutliersSelection/manual-selection-demo.gif"/>
|
|
17
17
|
|
|
18
18
|
## Automatic detection
|
|
19
19
|
|
|
@@ -22,5 +22,6 @@ It returns
|
|
|
22
22
|
3) Fill the corresponding function input parameters
|
|
23
23
|
4) Click `OK`
|
|
24
24
|
|
|
25
|
-
<img src="https://raw.githubusercontent.com/datagrok-ai/public/master/packages/Compute/help/
|
|
25
|
+
<img src="https://raw.githubusercontent.com/datagrok-ai/public/master/packages/Compute/help/OutliersSelection/auto-detection-
|
|
26
|
+
demo.gif"/>
|
|
26
27
|
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagrok/compute",
|
|
3
3
|
"friendlyName": "Compute",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.2",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Aufar Zakiev",
|
|
7
|
+
"email": "aufar.zakiev@arcadia.spb.ru"
|
|
8
|
+
},
|
|
5
9
|
"description": "Provides additional analytical and UI blocks for [Datagrok scientific computing](../../help/compute/compute.md)",
|
|
6
10
|
"repository": {
|
|
7
11
|
"type": "git",
|
|
@@ -43,14 +47,14 @@
|
|
|
43
47
|
"build-compute": "webpack",
|
|
44
48
|
"build": "webpack",
|
|
45
49
|
"build-compute-local": "npm --prefix ./../../js-api run build && npm --prefix ./../../libraries/utils run build && npm run build",
|
|
46
|
-
"debug-compute-dev": "webpack && grok publish dev
|
|
50
|
+
"debug-compute-dev": "webpack && grok publish dev",
|
|
47
51
|
"release-compute-dev": "grok publish dev --release",
|
|
48
|
-
"debug-compute-local": "grok publish local
|
|
49
|
-
"release-compute-local": "grok publish local --
|
|
50
|
-
"debug-compute-localhost": "grok publish localhost
|
|
51
|
-
"release-compute-localhost": "grok publish localhost --
|
|
52
|
-
"debug-compute-compose": "grok publish compose
|
|
53
|
-
"release-compute-compose": "grok publish compose --
|
|
52
|
+
"debug-compute-local": "grok publish local",
|
|
53
|
+
"release-compute-local": "grok publish local --release",
|
|
54
|
+
"debug-compute-localhost": "grok publish localhost",
|
|
55
|
+
"release-compute-localhost": "grok publish localhost --release",
|
|
56
|
+
"debug-compute-compose": "grok publish compose",
|
|
57
|
+
"release-compute-compose": "grok publish compose --release"
|
|
54
58
|
},
|
|
55
59
|
"canEdit": [
|
|
56
60
|
"Developers"
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
#language: octave
|
|
4
4
|
#tags: bioreactor
|
|
5
5
|
#input: dataframe test { viewer: Line chart(x: "Time (hours)", y: "Temperature (°C)", showSplitSelector: false) }
|
|
6
|
-
#input: double
|
|
7
|
-
#input: double
|
|
8
|
-
#input: double
|
|
9
|
-
#input: double VCD = 5 {caption:
|
|
6
|
+
#input: double AA = 424.2832 {caption: AA; units: ft² * BTU / hr °F}
|
|
7
|
+
#input: double FWC = 12 {caption: Bblabla flowrate; units: L/min}
|
|
8
|
+
#input: double Dummy scalar = -2 {caption: Dummy scalar.; units: °C}
|
|
9
|
+
#input: double VCD = 5 {caption: VCD; units: cells/mL}
|
|
10
10
|
#input: double VL = 210.5 {caption: Final Volume; units: L}
|
|
11
|
-
#input: double IC = 31.1 {caption:
|
|
11
|
+
#input: double IC = 31.1 {caption: Temp.; units: °C}
|
|
12
12
|
#output: dataframe tempOnTime { viewer: Line chart(x: "Time (hours)", y: "Temperature (°C)", showSplitSelector: false); category: Cooling rate }
|
|
13
13
|
#output: double IC2 {caption: Culture temp.; units: °C; category: Cooling rate}
|
|
14
14
|
#output: dataframe tempOnTime2 { viewer: Line chart(x: "Time (hours)", y: "Temperature (°C)", showSplitSelector: false) | Grid(block: 50); category: Cooling rate 2 }
|
|
@@ -18,32 +18,7 @@
|
|
|
18
18
|
#output: double IC3 {caption: Culture temp.; units: °C; category: Cooling rate 3}
|
|
19
19
|
#editor: Compute:FunctionViewEditor
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
## Conversion
|
|
24
|
-
CalperBTU = 252;
|
|
25
|
-
CalperhourperWatt = 3600/4.183076;
|
|
26
|
-
Cp = 1;
|
|
27
|
-
CoolingFactor = 56.5;
|
|
28
|
-
|
|
29
|
-
## Explicit Equation
|
|
30
|
-
##specificenthalpyreaction = 3.7136 * exp(0.0652*Tsub);
|
|
31
|
-
##Qrxn = VCD * 10^6 * VL * specificenthalpyofreaction/10^9;
|
|
32
|
-
##LMTD = (Tcoolingin-(Tsub + (Tcoolingin-Tsub)/(exp(UA*(CoolingFactor/100)*1.8*CalperBTU/(CoolingWaterFlow*Cp*60*1000)))))/log((Tsub-(Tsub + (Tcoolingin-Tsub)/(exp(UA*(CoolingFactor/100)*1.8*CalperBTU/(CoolingWaterFlow*Cp*60*1000)))))/(Tsub-Tcoolingin));
|
|
33
|
-
##Tcoolingout = Tsub + (Tcoolingin-Tsub)/(exp(UA*(CoolingFactor/100)*1.8*CalperBTU/(CoolingWaterFlow*Cp*60*1000)));
|
|
34
|
-
## Differential equation
|
|
35
|
-
syms Tsub;
|
|
36
|
-
|
|
37
|
-
F1 = @(t, Tsub) -UA * (CoolingFactor / 100) * ((Tcoolingin - (Tsub + (Tcoolingin - Tsub) / (exp(UA * (CoolingFactor / 100) * 1.8 * CalperBTU / (CoolingWaterFlow * Cp * 60 * 1000))))) / log((Tsub - (Tsub + (Tcoolingin - Tsub) / (exp(UA * (CoolingFactor / 100) * 1.8 * CalperBTU / (CoolingWaterFlow * Cp * 60 * 1000))))) / (Tsub - Tcoolingin))) * 1.8 * CalperBTU / (VL * Cp * 1000) + (VCD * 10^6 * VL * 3.7136 * exp(0.0652 * Tsub) / 10^9) * CalperhourperWatt / (VL * Cp * 1000);
|
|
38
|
-
|
|
39
|
-
## Change the time here
|
|
40
|
-
t = 3;
|
|
41
|
-
dt = 3/20;
|
|
42
|
-
|
|
43
|
-
## Solving the differential equations
|
|
44
|
-
[tt, Sol] = ode45(F1, 0:dt:t, IC);
|
|
45
|
-
labels = {"Time (hours)", "Temperature (°C)"};
|
|
46
|
-
tempOnTime = [labels; num2cell([tt, Sol])];
|
|
21
|
+
tempOnTime = test;
|
|
47
22
|
tempOnTime2 = tempOnTime;
|
|
48
23
|
tempOnTime3 = tempOnTime;
|
|
49
24
|
tempOnTime4 = tempOnTime;
|
package/scripts/default.m
CHANGED
|
@@ -2,38 +2,17 @@
|
|
|
2
2
|
#description: Shows that default view works (or not)
|
|
3
3
|
#language: octave
|
|
4
4
|
#tags: bioreactor
|
|
5
|
-
#input: double
|
|
6
|
-
#input: double
|
|
5
|
+
#input: double AA = 424.2832 {caption: AA; units: ft² * BTU / hr °F}
|
|
6
|
+
#input: double FWC = 12 {caption:FWC; units: L/min}
|
|
7
7
|
#input: double Tcoolingin = -2 {caption: Coolant temp.; units: °C}
|
|
8
8
|
#input: double VCD = 5 {caption: Target VCD; units: cells/mL}
|
|
9
9
|
#input: double VL = 210.5 {caption: Final Volume; units: L}
|
|
10
|
-
#input: double IC = 31.1 {caption:
|
|
10
|
+
#input: double IC = 31.1 {caption: Temp.; units: °C}
|
|
11
11
|
#output: dataframe tempOnTime { viewer: Line chart(x: "Time (hours)", y: "Temperature (°C)", showSplitSelector: false); category: Cooling rate }
|
|
12
12
|
#editor: Compute:FunctionViewEditor
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
tt = zeros(10, 1)
|
|
15
|
+
Sol = ones(10, 1)
|
|
15
16
|
|
|
16
|
-
## Conversion
|
|
17
|
-
CalperBTU = 252;
|
|
18
|
-
CalperhourperWatt = 3600/4.183076;
|
|
19
|
-
Cp = 1;
|
|
20
|
-
CoolingFactor = 56.5;
|
|
21
|
-
|
|
22
|
-
## Explicit Equation
|
|
23
|
-
##specificenthalpyreaction = 3.7136 * exp(0.0652*Tsub);
|
|
24
|
-
##Qrxn = VCD * 10^6 * VL * specificenthalpyofreaction/10^9;
|
|
25
|
-
##LMTD = (Tcoolingin-(Tsub + (Tcoolingin-Tsub)/(exp(UA*(CoolingFactor/100)*1.8*CalperBTU/(CoolingWaterFlow*Cp*60*1000)))))/log((Tsub-(Tsub + (Tcoolingin-Tsub)/(exp(UA*(CoolingFactor/100)*1.8*CalperBTU/(CoolingWaterFlow*Cp*60*1000)))))/(Tsub-Tcoolingin));
|
|
26
|
-
##Tcoolingout = Tsub + (Tcoolingin-Tsub)/(exp(UA*(CoolingFactor/100)*1.8*CalperBTU/(CoolingWaterFlow*Cp*60*1000)));
|
|
27
|
-
## Differential equation
|
|
28
|
-
syms Tsub;
|
|
29
|
-
|
|
30
|
-
F1 = @(t, Tsub) -UA * (CoolingFactor / 100) * ((Tcoolingin - (Tsub + (Tcoolingin - Tsub) / (exp(UA * (CoolingFactor / 100) * 1.8 * CalperBTU / (CoolingWaterFlow * Cp * 60 * 1000))))) / log((Tsub - (Tsub + (Tcoolingin - Tsub) / (exp(UA * (CoolingFactor / 100) * 1.8 * CalperBTU / (CoolingWaterFlow * Cp * 60 * 1000))))) / (Tsub - Tcoolingin))) * 1.8 * CalperBTU / (VL * Cp * 1000) + (VCD * 10^6 * VL * 3.7136 * exp(0.0652 * Tsub) / 10^9) * CalperhourperWatt / (VL * Cp * 1000);
|
|
31
|
-
|
|
32
|
-
## Change the time here
|
|
33
|
-
t = 3;
|
|
34
|
-
dt = 3/20;
|
|
35
|
-
|
|
36
|
-
## Solving the differential equations
|
|
37
|
-
[tt, Sol] = ode45(F1, 0:dt:t, IC);
|
|
38
17
|
labels = {"Time (hours)", "Temperature (°C)"};
|
|
39
18
|
tempOnTime = [labels; num2cell([tt, Sol])];
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/model-handler.ts
CHANGED
|
@@ -53,6 +53,7 @@ export class ModelHandler extends DG.ObjectHandler {
|
|
|
53
53
|
if (x instanceof DG.Script) {
|
|
54
54
|
return this.getLanguageIcon(x.language);
|
|
55
55
|
}
|
|
56
|
+
x = DG.Func.find({package: x.package.name, name: x.name})[0];
|
|
56
57
|
let iconUrl = x.package.getIconUrl();
|
|
57
58
|
if (x.options['icon'] != null) {
|
|
58
59
|
let packagePathSegments = iconUrl.split('/');
|