Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ build/Release
# Dependency directories
**/node_modules/
jspm_packages/
**/dist/
**/dist_electron/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
Expand Down
21 changes: 13 additions & 8 deletions citam/api/storage/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,26 @@ def __init__(self, search_path, **kwargs): # noqa
f"must reference a directory"
)

required_values = ["SimulationID", "FacilityName", "PolicyID"]
for manifest in manifests:
with open(manifest, "r") as manifest_file:
try:
manifest_data = json.load(manifest_file)
sim_id = manifest_data["SimulationID"]
policy_id = manifest_data["PolicyID"]
facility_name = manifest_data["FacilityName"]
except KeyError:
LOG.warning(
'"%s" does not define "SimulationName". '
manifest_data = json.load(manifest_file)
missing_values = [
key for key in required_values if key not in manifest_data
]
if len(missing_values) > 0:
LOG.error(
'"%s" does not define the following values: "%s". '
"The results for this manifest will be ignored ",
manifest,
missing_values,
)
continue

sim_id = manifest_data["SimulationID"]
policy_id = manifest_data["PolicyID"]
facility_name = manifest_data["FacilityName"]

self.result_dirs[sim_id] = os.path.dirname(manifest)
self.runs.append(
{
Expand Down
1,905 changes: 1,905 additions & 0 deletions citamjs/dist_electron/index.js

Large diffs are not rendered by default.

78 changes: 78 additions & 0 deletions citamjs/dist_electron/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"name": "citam",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"electron:build": "vue-cli-service electron:build",
"electron:serve": "vue-cli-service electron:serve",
"postinstall": "electron-builder install-app-deps",
"postuninstall": "electron-builder install-app-deps",
"test": "vue-cli-service test:unit"
},
"main": "background.js",
"dependencies": {
"@fortawesome/fontawesome-common-types": "^0.2.32",
"@fortawesome/fontawesome-svg-core": "^1.2.32",
"@fortawesome/free-brands-svg-icons": "^5.15.1",
"@fortawesome/free-solid-svg-icons": "^5.15.1",
"@fortawesome/vue-fontawesome": "^0.1.10",
"asar": "^3.0.3",
"axios": "^0.19.2",
"bootstrap": "^4.5.0",
"core-js": "^3.6.5",
"d3": "^5.16.0",
"dat.gui": "^0.7.7",
"interactjs": "^1.9.20",
"jquery": "^3.5.1",
"lodash": "^4.17.19",
"plotly.js-dist": "^1.54.7",
"popper.js": "^1.16.1",
"sass": "^1.26.10",
"sass-loader": "^9.0.2",
"vue": "^2.6.11",
"vue-router": "^3.4.9",
"vuex": "^3.6.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.4.0",
"@vue/cli-plugin-eslint": "~4.4.0",
"@vue/cli-plugin-unit-jest": "^4.5.3",
"@vue/cli-service": "~4.4.0",
"@vue/test-utils": "^1.0.3",
"babel-eslint": "^10.1.0",
"babel-plugin-lodash": "^3.3.4",
"electron": "^11.2.0",
"electron-devtools-installer": "^3.1.0",
"electron-icon-builder": "^2.0.1",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"jest": "^26.4.0",
"spectron": "13.0.0",
"vue-cli-plugin-electron-builder": "~2.0.0-rc.5",
"vue-template-compiler": "^2.6.11"
},
"eslintConfig": {
"root": true,
"env": {
"node": true,
"jest": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended"
],
"parserOptions": {
"parser": "babel-eslint"
},
"rules": {}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead"
],
"type": "modules"
}
Binary file added citamjs/icons/1024x1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/24x24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/mac/icon.icns
Binary file not shown.
Binary file added citamjs/icons/png/1024x1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/png/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/png/16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/png/24x24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/png/256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/png/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/png/48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/png/512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/png/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added citamjs/icons/win/icon.ico
Binary file not shown.
Loading