@datagrok/compute 1.29.0 → 1.30.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/CHANGELOG.md +15 -0
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +2 -2
- package/scripts/object-cooling.js +2 -0
- package/src/package.ts +11 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagrok/compute",
|
|
3
3
|
"friendlyName": "Compute",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.30.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Aufar Zakiev",
|
|
7
7
|
"email": "aufar.zakiev@softwarecountry.com"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"rxjs": "^6.6.7",
|
|
17
|
-
"@datagrok-libraries/compute-utils": "^1.
|
|
17
|
+
"@datagrok-libraries/compute-utils": "^1.30.0",
|
|
18
18
|
"cash-dom": "latest",
|
|
19
19
|
"datagrok-api": "^1.17.0",
|
|
20
20
|
"source-map-loader": "^4.0.1",
|
|
@@ -8,6 +8,7 @@
|
|
|
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; validatorFunc: Compute:HeatCapValidator; }
|
|
10
10
|
//input: double heatTransferCoeff = 8.3 {caption: Heat transfer coefficient; units: W/(m² * C); category: Object properties}
|
|
11
|
+
//input: string previousRun {caption: Previous run; category: Simulation; input: Compute:ObjectCoolingSelector; funccallMapping: {"simTime": "timeToCool"}; nullable: true}
|
|
11
12
|
//input: int simTime = 21600 {caption: Simulation time; units: sec; category: Simulation; validatorFunc: Compute:SimTimeValidator; validatorFuncOptions: { "reasonableMin": 10800, "reasonableMax": 100000} }
|
|
12
13
|
//output: dataframe simulation {caption: Temp. vs time; category: Output; viewer: Line chart(block: 75) | Grid(block: 25)}
|
|
13
14
|
//output: double timeToCool {caption: Time to cool; units: sec.; category: Output}
|
|
@@ -21,6 +22,7 @@
|
|
|
21
22
|
//meta.compareCustomizer: Compute:CustomCustomizer
|
|
22
23
|
//meta.uploadFunc: Compute:CustomUploader
|
|
23
24
|
//meta.help: Compute/readme.md
|
|
25
|
+
//meta.mainParams: ["ambTemp", "initTemp", "desiredTemp"]
|
|
24
26
|
|
|
25
27
|
timeToCool = undefined;
|
|
26
28
|
|
package/src/package.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as ui from 'datagrok-api/ui';
|
|
|
4
4
|
import * as DG from 'datagrok-api/dg';
|
|
5
5
|
import {filter} from 'rxjs/operators';
|
|
6
6
|
import {OutliersSelectionViewer} from './outliers-selection/outliers-selection-viewer';
|
|
7
|
-
import {RichFunctionView} from "@datagrok-libraries/compute-utils";
|
|
7
|
+
import {RichFunctionView, UiUtils} from "@datagrok-libraries/compute-utils";
|
|
8
8
|
import { ValidationInfo, makeAdvice, makeValidationResult } from '@datagrok-libraries/compute-utils/shared-utils/validation';
|
|
9
9
|
import {ModelCatalogView, ModelHandler} from '@datagrok-libraries/compute-utils/model-catalog';
|
|
10
10
|
import './css/model-card.css';
|
|
@@ -279,4 +279,14 @@ export function CustomStringInput(params: any) {
|
|
|
279
279
|
defaultInput.root.style.backgroundColor = 'aqua';
|
|
280
280
|
defaultInput.input.style.backgroundColor = 'aqua';
|
|
281
281
|
return defaultInput;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
//name: ObjectCoolingSelector
|
|
285
|
+
//input: object params
|
|
286
|
+
//output: object input
|
|
287
|
+
export function ObjectCoolingSelector(params: any) {
|
|
288
|
+
return UiUtils.historyInputJSON(
|
|
289
|
+
'Previous run',
|
|
290
|
+
'ObjectCooling',
|
|
291
|
+
);
|
|
282
292
|
}
|