@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.
@@ -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/outliers_selection/manual_selection_demo.gif"/>
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/outliers_selection/auto_detection_demo.gif"/>
25
+ <img src="https://raw.githubusercontent.com/datagrok-ai/public/master/packages/Compute/help/OutliersSelection/auto-detection-
26
+ demo.gif"/>
26
27
 
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@datagrok/compute",
3
3
  "friendlyName": "Compute",
4
- "version": "0.9.1",
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 --rebuild",
50
+ "debug-compute-dev": "webpack && grok publish dev",
47
51
  "release-compute-dev": "grok publish dev --release",
48
- "debug-compute-local": "grok publish local --rebuild",
49
- "release-compute-local": "grok publish local --rebuild --release",
50
- "debug-compute-localhost": "grok publish localhost --rebuild",
51
- "release-compute-localhost": "grok publish localhost --rebuild --release",
52
- "debug-compute-compose": "grok publish compose --rebuild",
53
- "release-compute-compose": "grok publish compose --rebuild --release"
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 UA = 424.2832 {caption: UA; units: ft² * BTU / hr °F}
7
- #input: double CoolingWaterFlow = 12 {caption: Coolant flowrate; units: L/min}
8
- #input: double Tcoolingin = -2 {caption: Coolant temp.; units: °C}
9
- #input: double VCD = 5 {caption: Target VCD; units: cells/mL}
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: Culture temp.; units: °C}
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
- pkg load symbolic
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 UA = 424.2832 {caption: UA; units: ft² * BTU / hr °F}
6
- #input: double CoolingWaterFlow = 12 {caption: Coolant flowrate; units: L/min}
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: Culture temp.; units: °C}
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
- pkg load symbolic
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
@@ -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('/');