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: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ logs/
app_crash.log

# Database files
data/databases/*.db
#data/databases/*.db (ALlowed git to consider .db files)
data/databases/*.sqlite3

# Flask and Django
Expand Down
Empty file.
21 changes: 21 additions & 0 deletions src/osbridgelcca.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Metadata-Version: 2.4
Name: osbridgelcca
Version: 0.1.0
Summary: Life Cycle Cost Analysis for Bridges
Author-email: Your Name <your.email@example.com>
License: MIT
License-File: LICENSE
Requires-Dist: django
Requires-Dist: djangorestframework
Requires-Dist: pyqt5
Requires-Dist: plotly
Requires-Dist: pylatex
Requires-Dist: pytest
Requires-Dist: matplotlib
Requires-Dist: pandas
Requires-Dist: numpy
Requires-Dist: psycopg2-binary
Requires-Dist: requests
Requires-Dist: flask
Requires-Dist: gunicorn
Dynamic: license-file
9 changes: 9 additions & 0 deletions src/osbridgelcca.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
LICENSE
README.md
pyproject.toml
src/osbridgelcca/__init__.py
src/osbridgelcca.egg-info/PKG-INFO
src/osbridgelcca.egg-info/SOURCES.txt
src/osbridgelcca.egg-info/dependency_links.txt
src/osbridgelcca.egg-info/requires.txt
src/osbridgelcca.egg-info/top_level.txt
1 change: 1 addition & 0 deletions src/osbridgelcca.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

13 changes: 13 additions & 0 deletions src/osbridgelcca.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
django
djangorestframework
pyqt5
plotly
pylatex
pytest
matplotlib
pandas
numpy
psycopg2-binary
requests
flask
gunicorn
1 change: 1 addition & 0 deletions src/osbridgelcca.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
osbridgelcca
7 changes: 7 additions & 0 deletions src/osbridgelcca/backend/api/routes/user_data.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
import json
from pathlib import Path

# Placeholder for user data
def save_user_input(data):
output_path = Path(__file__).parent / "user_input.json"
with open(output_path, "w", encoding="utf-8") as f:
json.dump(data, f, ensure_ascii=False, indent=4)
121 changes: 121 additions & 0 deletions src/osbridgelcca/backend/api/routes/user_input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
{
"concrete": {
"units": [
"cum",
"kg"
],
"grades": {
"M15": {
"cum": 0.0,
"kg": 0.0
},
"M20": {
"cum": 0.0,
"kg": 0.0
},
"M25": {
"cum": 0.0,
"kg": 0.0
},
"M30": {
"cum": 10.0,
"kg": 0.0
},
"M35": {
"cum": 0.0,
"kg": 0.0
},
"M40": {
"cum": 0.0,
"kg": 0.0
},
"M45": {
"cum": 0.0,
"kg": 0.0
},
"M50": {
"cum": 0.0,
"kg": 0.0
}
}
},
"steel": {
"units": [
"MT",
"kg"
],
"grades": {
"E 165(Fe 290)": {
"MT": 0.0,
"kg": 0.0
},
"E 250(Fe 410W)A": {
"MT": 0.0,
"kg": 0.0
},
"E 250(Fe 410W)B": {
"MT": 0.0,
"kg": 0.0
},
"E 250(Fe 410)C": {
"MT": 0.0,
"kg": 0.0
},
"E 300(Fe 440)": {
"MT": 0.0,
"kg": 0.0
},
"E 350(Fe 490)": {
"MT": 0.0,
"kg": 0.0
},
"E 410(Fe 540)": {
"MT": 0.0,
"kg": 0.0
},
"E 450(Fe 570)D": {
"MT": 0.0,
"kg": 0.0
}
}
},
"mastic asphalt": {
"units": [
"sqm"
],
"grades": {
"default": {
"sqm": 0.0
}
}
},
"paint": {
"units": [
"ltr"
],
"grades": {
"white/yellow": {
"ltr": 0.0
},
"primer_epoxy": {
"ltr": 0.0
},
"oil": {
"ltr": 0.0
},
"alluminium": {
"ltr": 0.0
}
}
},
"paver blocks": {
"units": [
"sqm"
],
"grades": {
"default": {
"sqm": 0.0
}
}
}
}
Loading