diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 94169cc2..a4c8099b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -3,7 +3,7 @@ name: App build
on:
push:
branches:
- - "fix-compare-page"
+ - "add-slack-option"
defaults:
run:
@@ -46,13 +46,9 @@ jobs:
- name: Get idaes extensions
run: idaes get-extensions
- - name: Install correct tag of pareto
+ - name: Install correct branch of pareto
working-directory: ../
- run: git clone https://github.com/tarnold17/project-pareto.git && cd project-pareto && git fetch --all && git checkout generate_report_fix && pip install --progress-bar off .
-
- # - name: Install correct branch of pareto
- # working-directory: ../
- # run: git clone https://github.com/project-pareto/project-pareto.git && cd project-pareto && pip install --progress-bar off .
+ run: git clone https://github.com/project-pareto/project-pareto.git && cd project-pareto && pip install --progress-bar off .
- name: Install build requirements
working-directory: ./backend
@@ -70,7 +66,7 @@ jobs:
- name: Sign Windows Distribution
run: |
- AzureSignTool sign -kvu "${{ secrets.AZURE_KEY_VAULT_URI }}" -kvi "${{ secrets.AZURE_CLIENT_ID }}" -kvt "${{ secrets.AZURE_TENANT_ID }}" -kvs "${{ secrets.AZURE_CLIENT_SECRET }}" -kvc ${{ secrets.AZURE_CERT_NAME }} -tr http://timestamp.digicert.com -v electron/dist/ParetoUI-24.07.15-win64.exe
+ AzureSignTool sign -kvu "${{ secrets.AZURE_KEY_VAULT_URI }}" -kvi "${{ secrets.AZURE_CLIENT_ID }}" -kvt "${{ secrets.AZURE_TENANT_ID }}" -kvs "${{ secrets.AZURE_CLIENT_SECRET }}" -kvc ${{ secrets.AZURE_CERT_NAME }} -tr http://timestamp.digicert.com -v electron/dist/ParetoUI-24.07.24-win64.exe
- name: Upload artifact for windows build
uses: actions/upload-artifact@v4
@@ -78,4 +74,4 @@ jobs:
with:
name: windows-pareto-dist
path: |
- electron/dist/ParetoUI-24.07.15-win64.exe
\ No newline at end of file
+ electron/dist/ParetoUI-24.07.24-win64.exe
\ No newline at end of file
diff --git a/backend/app/extra-hooks/hook-pareto.py b/backend/app/extra-hooks/hook-pareto.py
index 9b69c4db..8c2d66e2 100644
--- a/backend/app/extra-hooks/hook-pareto.py
+++ b/backend/app/extra-hooks/hook-pareto.py
@@ -81,4 +81,7 @@
datas.append(('internal/assets/pareto_input_template.xlsx', 'app/internal/assets'))
datas.append(('internal/assets/workshop_baseline_all_data_0.9.0.xlsx', 'app/internal/assets'))
+# add lorem ipsum.txt for jaraco
+datas.append(('internal/assets/Lorem ipsum.txt', 'jaraco/text'))
+
print(datas)
\ No newline at end of file
diff --git a/backend/app/internal/assets/Lorem ipsum.txt b/backend/app/internal/assets/Lorem ipsum.txt
new file mode 100644
index 00000000..e69de29b
diff --git a/backend/app/internal/pareto_stategic_model.py b/backend/app/internal/pareto_stategic_model.py
index 2101ce49..1504df5b 100644
--- a/backend/app/internal/pareto_stategic_model.py
+++ b/backend/app/internal/pareto_stategic_model.py
@@ -80,9 +80,9 @@ def run_strategic_model(input_file, output_file, id, modelParameters, overrideVa
optimality_gap = int(modelParameters["optimalityGap"])/100
except:
optimality_gap = 0
- # _log.info(f'optimality gap is {optimality_gap}')
+ # _log.info(f'deactivating slacks: {modelParameters["deactivate_slacks"]}')
options = {
- "deactivate_slacks": True,
+ "deactivate_slacks": modelParameters["deactivate_slacks"],
"scale_model": modelParameters["scale_model"],
"scaling_factor": 1000,
"running_time": modelParameters["runtime"],
diff --git a/backend/app/routers/scenarios.py b/backend/app/routers/scenarios.py
index 735ba907..2318cf1e 100644
--- a/backend/app/routers/scenarios.py
+++ b/backend/app/routers/scenarios.py
@@ -179,6 +179,7 @@ async def run_model(request: Request, background_tasks: BackgroundTasks):
"desalination_model": optimizationSettings.get("desalination_model", "false"),
"infrastructure_timing": optimizationSettings.get("infrastructure_timing", "false"),
"subsurface_risk": optimizationSettings.get("subsurface_risk", "false"),
+ "deactivate_slacks": optimizationSettings.get("deactivate_slacks", True),
}
_log.info(f"modelParameters: {modelParameters}")
diff --git a/electron/package-lock.json b/electron/package-lock.json
index b5936434..ada3cc29 100644
--- a/electron/package-lock.json
+++ b/electron/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "pareto-ui",
- "version": "24.07.15",
+ "version": "24.07.24",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "pareto-ui",
- "version": "24.07.15",
+ "version": "24.07.24",
"dependencies": {
"@electron/remote": "^2.0.8",
"axios": "^0.27.2",
diff --git a/electron/package.json b/electron/package.json
index e3ddc1bb..9d2cb381 100644
--- a/electron/package.json
+++ b/electron/package.json
@@ -1,6 +1,6 @@
{
"name": "pareto-ui",
- "version": "24.07.15",
+ "version": "24.07.24",
"author": "Michael Pesce",
"private": true,
"main": "build/main.js",
@@ -74,10 +74,10 @@
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
- "artifactName": "ParetoUI-24.07.15-win64.exe"
+ "artifactName": "ParetoUI-24.07.24-win64.exe"
},
"dmg": {
- "artifactName": "ParetoUI-24.07.15-arm64.dmg"
+ "artifactName": "ParetoUI-24.07.24-arm64.dmg"
},
"deb": {
"depends": [
@@ -86,7 +86,7 @@
"liblapack3",
"libblas3"
],
- "artifactName": "ParetoUI-24.07.15-amd64.deb"
+ "artifactName": "ParetoUI-24.07.24-amd64.deb"
},
"directories": {
"buildResources": "assets"
@@ -106,7 +106,7 @@
"win": {
"target": "nsis",
"icon": "build/pareto-logo.ico",
- "artifactName": "ParetoUI-24.07.15-win64.exe"
+ "artifactName": "ParetoUI-24.07.24-win64.exe"
},
"linux": {
"target": "Deb",
diff --git a/electron/ui/src/views/LandingPage/LandingPage.js b/electron/ui/src/views/LandingPage/LandingPage.js
index 073d6e83..6befb146 100644
--- a/electron/ui/src/views/LandingPage/LandingPage.js
+++ b/electron/ui/src/views/LandingPage/LandingPage.js
@@ -58,7 +58,7 @@ export default function LandingPage(props) {
v24.07.15 (PARETO v{process.env.REACT_APP_PARETO_VERSION}) v24.07.24 (PARETO v{process.env.REACT_APP_PARETO_VERSION})
Scale Model
-Pipeline Capacity
-Pipeline Cost
-Node Capacity
-Infrastructure Timing
-Subsurface Risk
-Removal Efficiency Method
-Desalination Model
-{data.displayName}
+