Skip to content

Commit 41ba315

Browse files
author
rmdocherty
committed
updates to get server working
1 parent 70d0f75 commit 41ba315

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

.gitignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ fig2 copy.py
1212
*.png
1313
*.npy
1414

15+
.vscode
1516
frontend/node_modules
1617
frontend/dist
1718
*.kra
18-
deploy
19+
deploy*/
1920
deploy.sh
20-
.vscode
21+
deploy.zip
22+
2123
tests/tmp.py

frontend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.5.0",
44
"license": "MIT",
55
"scripts": {
6-
"build": "yarn run clean-dist && webpack --config=configs/webpack/prod.js && mv dist/*.wasm dist/js",
6+
"build": "yarn run clean-dist && webpack --config=configs/webpack/prod.js",
77
"clean-dist": "rimraf dist/*",
88
"lint": "eslint './src/**/*.{js,ts,tsx}' --quiet",
99
"start": "yarn run start-dev",

frontend/src/App.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@ import "./assets/scss/App.scss";
1414
import 'bootstrap/dist/css/bootstrap.min.css';
1515

1616
const PATH = "http://127.0.0.1:5000";
17-
const PF_ENDPOINT = PATH + "/phasefraction";
17+
//const PATH = "http://localhost:7071/api";
18+
//const PATH = "https://representative.azurewebsites.net/api"
19+
const PF_ENDPOINT = PATH + "/phasefraction"
1820
//const PF_ENDPOINT = "https://representativity.azurewebsites.net/phasefraction"
21+
22+
//const REPR_ENDPOINT = PATH + "/repr";
1923
const REPR_ENDPOINT = PATH + "/repr";
2024

2125
const MAX_FILE_SIZE_BYTES = 1024 * 1024 * 500; // 500MB

frontend/src/components/NormalSlider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ const NormalSlider = () => {
255255
<div style={{ width: '100%' }}>
256256
<canvas style={{ width: '70%', marginLeft: '15%', marginBottom: '0.5em' }} width={CANVAS_WIDTH} height={CANVAS_HEIGHT} ref={canvasRef} />
257257
<InputGroup style={{ width: '70%', marginLeft: '15%' }}> {/*style={{ width: '70%', marginLeft: '15%' }}*/}
258-
<InputGroup.Text>Confidence in Phase Fraction Bounds (%):</InputGroup.Text>
258+
<InputGroup.Text>Confidence in p.f. bounds (%):</InputGroup.Text>
259259

260260
<Form.Control type="number" min={0} max={100} value={selectedConf} step={0.5} onChange={(e) => setConf(e)} width={1} size="sm"></Form.Control>
261261
<Form.Range min={80} max={100} value={selectedConf} step={0.1} onChange={(e) => setConf(e)} />

representativity/server.py

-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ def representativity(request) -> Response:
142142
"pf_1d": result["pf_1d"],
143143
"cum_sum_sum": result["cum_sum_sum"],
144144
}
145-
print(out)
146145

147146
response = Response(json.dumps(out), status=200)
148147
return response

0 commit comments

Comments
 (0)