@datagrok/compute 1.3.2 → 1.4.0

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,66 +1,67 @@
1
1
  {
2
- "name": "@datagrok/compute",
3
- "friendlyName": "Compute",
4
- "version": "1.3.2",
5
- "author": {
6
- "name": "Aufar Zakiev",
7
- "email": "aufar.zakiev@softwarecountry.com"
8
- },
9
- "description": "Provides additional analytical and UI blocks for [Datagrok scientific computing](../../help/compute/compute.md).",
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/datagrok-ai/public.git",
13
- "directory": "packages/Compute"
14
- },
15
- "dependencies": {
16
- "@datagrok-libraries/compute-utils": "^1.2.0",
17
- "cash-dom": "latest",
18
- "datagrok-api": "^1.14.0",
19
- "dayjs": "latest",
20
- "rxjs": "^6.5.5",
21
- "source-map-loader": "^4.0.1",
22
- "ts-loader": "latest",
23
- "typescript": "latest",
24
- "wu": "latest"
25
- },
26
- "devDependencies": {
27
- "@types/wu": "latest",
28
- "@typescript-eslint/eslint-plugin": "^5.1.0",
29
- "@typescript-eslint/parser": "^5.1.0",
30
- "css-loader": "^6.5.1",
31
- "eslint": "^8.0.1",
32
- "eslint-config-google": "^0.14.0",
33
- "style-loader": "^3.3.1",
34
- "webpack": "latest",
35
- "webpack-cli": "latest"
36
- },
37
- "scripts": {
38
- "link-api": "npm link datagrok-api",
39
- "link-utils": "npm link @datagrok-libraries/utils",
40
- "link-all": "npm link datagrok-api @datagrok-libraries/utils",
41
- "debug-compute": "webpack & grok publish localhost --release",
42
- "release-compute": "webpack && grok publish localhost --release",
43
- "build-compute": "webpack",
44
- "build": "webpack",
45
- "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",
47
- "release-compute-dev": "grok publish dev --release",
48
- "debug-compute-local": "grok publish local",
49
- "release-compute-local": "grok publish local --release",
50
- "debug-compute-localhost": "grok publish localhost",
51
- "release-compute-localhost": "grok publish localhost --release",
52
- "debug-compute-compose": "grok publish compose",
53
- "release-compute-compose": "grok publish compose --release"
54
- },
55
- "sources": [
56
- "common/exceljs.min.js",
57
- "common/html2canvas.min.js"
58
- ],
59
- "canEdit": [
60
- "Developers"
61
- ],
62
- "canView": [
63
- "All users"
64
- ],
65
- "category": "Machine Learning"
2
+ "name": "@datagrok/compute",
3
+ "friendlyName": "Compute",
4
+ "version": "1.4.0",
5
+ "author": {
6
+ "name": "Aufar Zakiev",
7
+ "email": "aufar.zakiev@softwarecountry.com"
8
+ },
9
+ "description": "Provides additional analytical and UI blocks for [Datagrok scientific computing](../../help/compute/compute.md).",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/datagrok-ai/public.git",
13
+ "directory": "packages/Compute"
14
+ },
15
+ "dependencies": {
16
+ "@datagrok-libraries/compute-utils": "^1.4.0",
17
+ "cash-dom": "latest",
18
+ "datagrok-api": "^1.14.0",
19
+ "dayjs": "latest",
20
+ "rxjs": "^6.5.5",
21
+ "source-map-loader": "^4.0.1",
22
+ "ts-loader": "latest",
23
+ "typescript": "latest",
24
+ "wu": "latest"
25
+ },
26
+ "devDependencies": {
27
+ "@types/wu": "latest",
28
+ "@typescript-eslint/eslint-plugin": "^5.1.0",
29
+ "@typescript-eslint/parser": "^5.1.0",
30
+ "css-loader": "^6.5.1",
31
+ "eslint": "^8.0.1",
32
+ "eslint-config-google": "^0.14.0",
33
+ "style-loader": "^3.3.1",
34
+ "webpack": "latest",
35
+ "webpack-cli": "latest"
36
+ },
37
+ "scripts": {
38
+ "link-api": "npm link datagrok-api",
39
+ "link-utils": "npm link @datagrok-libraries/utils",
40
+ "link-all": "npm link datagrok-api @datagrok-libraries/compute-utils",
41
+ "debug-compute": "webpack & grok publish localhost --release",
42
+ "release-compute": "webpack && grok publish localhost --release",
43
+ "build-compute": "webpack",
44
+ "build": "webpack",
45
+ "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",
47
+ "release-compute-dev": "grok publish dev --release",
48
+ "debug-compute-local": "grok publish local",
49
+ "release-compute-local": "grok publish local --release",
50
+ "debug-compute-localhost": "grok publish localhost",
51
+ "release-compute-localhost": "grok publish localhost --release",
52
+ "debug-compute-compose": "grok publish compose",
53
+ "release-compute-compose": "grok publish compose --release",
54
+ "build-all": "npm --prefix ./../../js-api run build && npm --prefix ./../../libraries/compute-utils run build && npm run build"
55
+ },
56
+ "sources": [
57
+ "common/exceljs.min.js",
58
+ "common/html2canvas.min.js"
59
+ ],
60
+ "canEdit": [
61
+ "Developers"
62
+ ],
63
+ "canView": [
64
+ "All users"
65
+ ],
66
+ "category": "Machine Learning"
66
67
  }
@@ -0,0 +1,36 @@
1
+ //name: Default immediate script JS
2
+ //description: Shows that default view works (or not)
3
+ //language: javascript
4
+ //tags: bioreactor
5
+ //input: double S1 = 1 {caption: S1; units: ft² * BTU / hr °F; category: Category1}
6
+ //input: double S2 = 100 {caption: Initial scalar; units: L/min; category: Category1}
7
+ //input: double S3 = -2 {caption: Dummy scalar.; units: °C; category: Category1}
8
+ //input: double S4 = 5 {caption: Final S4; units: cells/mL; category: Category2}
9
+ //input: double S5 = 210.5 {caption: Final Volume; units: L; category: Category2}
10
+ //input: double S = 31.1 {caption: Temp.; units: °C; category: Category2}
11
+ //output: dataframe tempOnTime { viewer: Line chart(block: 50, x: "Time (hours)", y: "Temperature (°C)", showSplitSelector: false) | Statistics(block: 50); category: CoolingRate }
12
+ //output: dataframe tempOnTime2 { viewer: Line chart(block: 25, x: "Time (hours)", y: "Temperature (°C)", showSplitSelector: false) | Grid(block: 75); category: CoolingRate2 }
13
+ //output: double O1 {caption: Temp 1.; units: °C; category: CoolingRate2 }
14
+ //output: dataframe tempOnTime3 { caption: "My lovely caption"; viewer: Line chart(block: 75, x: "Time (hours)", y: "Temperature (°C)", showSplitSelector: false) | Grid(block: 25); category: CoolingRate2 }
15
+ //output: double O2 {caption: Temp 2.; units: °C; category: CoolingRate3 }
16
+ //output: double O3 {caption: Temp 3.; units: °C; category: CoolingRate3 }
17
+ //output: double O4 {caption: Temp 4.; units: °C; category: CoolingRate3 }
18
+ //output: double O5 {caption: Temp 5.; units: °C; category: CoolingRate3 }
19
+ //editor: Compute:RichFunctionViewEditor
20
+ //meta.runOnInput: true
21
+
22
+ const tt = [...Array(S2).keys()]
23
+ const Sol = [...Array(S2).keys()].map((x) => x*2)
24
+
25
+ tempOnTime = DG.DataFrame.fromColumns([
26
+ DG.Column.float("Time (hours)", S2).init((i) => tt[i]),
27
+ DG.Column.float("Temperature (°C)", S2).init((i) => Sol[i]),
28
+ ])
29
+ tempOnTime2 = tempOnTime
30
+ tempOnTime3 = tempOnTime
31
+
32
+ O1 = S2
33
+ O2 = S2
34
+ O3 = S2
35
+ O4 = S2
36
+ O5 = S2
@@ -8,8 +8,8 @@
8
8
  //input: double S4 = 5 {caption: Final S4; units: cells/mL; category: Category2}
9
9
  //input: double S5 = 210.5 {caption: Final Volume; units: L; category: Category2}
10
10
  //input: double S = 31.1 {caption: Temp.; units: °C; category: Category2}
11
- //output: dataframe tempOnTime { viewer: Line chart(block: 50, x: "Time (hours)", y: "Temperature (°C)", showSplitSelector: false) | Statistics(block: 50); category: CoolingRate }
12
- //output: dataframe tempOnTime2 { viewer: Line chart(block: 25, x: "Time (hours)", y: "Temperature (°C)", showSplitSelector: false) | Grid(block: 75); category: CoolingRate2 }
11
+ //output: dataframe tempOnTime { viewer: Line chart(block: 100, x: "Time (hours)", y: "Temperature (°C)", showSplitSelector: false) | Statistics(block: 50); category: CoolingRate }
12
+ //output: dataframe tempOnTime2 { viewer: Line chart(block: 100, x: "Time (hours)", y: "Temperature (°C)", showSplitSelector: false) | Grid(block: 75); category: CoolingRate2 }
13
13
  //output: double O1 {caption: Temp 1.; units: °C; category: CoolingRate2 }
14
14
  //output: dataframe tempOnTime3 { caption: "My lovely caption"; viewer: Line chart(block: 75, x: "Time (hours)", y: "Temperature (°C)", showSplitSelector: false) | Grid(block: 25); category: CoolingRate2 }
15
15
  //output: double O2 {caption: Temp 2.; units: °C; category: CoolingRate3 }
@@ -32,4 +32,4 @@ O1 = S2
32
32
  O2 = S2
33
33
  O3 = S2
34
34
  O4 = S2
35
- O5 = S2
35
+ O5 = S2
@@ -1,11 +0,0 @@
1
- /*!
2
-
3
- JSZip v3.10.1 - A JavaScript class for generating and reading zip files
4
- <http://stuartk.com/jszip>
5
-
6
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
7
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
8
-
9
- JSZip uses the library pako released under the MIT license :
10
- https://github.com/nodeca/pako/blob/main/LICENSE
11
- */