Skip to content

Manufacturing impacts backend #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
47e27aa
improvement - error message generation made a bit simpler and cleaner…
evenmatencio May 29, 2025
b3a86e3
preparing manufacturing impacts computation by adding required data
evenmatencio May 29, 2025
c9db668
completed CPU and GPU csv with per core embodied impacts and per core…
evenmatencio May 30, 2025
7554c0b
debug - removing duplicate from data files, correcting typos and adap…
evenmatencio Jun 5, 2025
32bb081
feature - embodied impacts computed for GPUs, memory and other device…
evenmatencio Jun 5, 2025
8a4309b
feature - embodied computations finished, need to debug with the goog…
evenmatencio Jun 6, 2025
fdd19c8
debug - CPU computations for embodied impacts cleaner and debugged
evenmatencio Jun 10, 2025
ede5444
feature - custom CPU spec subform created:
evenmatencio Jun 12, 2025
0c34cf4
feature - GPU custom inpus implemented, no test with csv could be per…
evenmatencio Jun 13, 2025
e8493ed
completed manufacturing backend:
evenmatencio Jun 17, 2025
7b0140d
bugfix - remove if/else statements that were using the version as a p…
evenmatencio Jun 18, 2025
7e701dd
fix - training and inference manufacturing impacts were not summed
evenmatencio Jun 18, 2025
53f8f09
feature - utilities to compute the planetary boundaries, not called y…
evenmatencio Jun 18, 2025
0445565
fix - defaut value for cores model adapted to the data version and no…
evenmatencio Jun 18, 2025
2ca2fe8
bugfix - no zero division even when a bug happend on Ai page
evenmatencio Jun 18, 2025
1f8cc74
fix - remove useless and obsolete data + remove old comment
evenmatencio Jun 18, 2025
d023e24
fix - simplified and documented load_data function
evenmatencio Jun 18, 2025
c20e55f
feature - improved error message:
evenmatencio Jun 18, 2025
cb44148
feature - custom carbon intensity field:
evenmatencio Jun 19, 2025
94ec9b2
bugfix:
evenmatencio Jun 19, 2025
698bc9f
Both is now the default choice for cores type
evenmatencio Jun 19, 2025
d280b85
Comments from PR56:
evenmatencio Jun 20, 2025
a852756
Light bugfix: filling TDP column for Any item of previous versions data
evenmatencio Jun 20, 2025
ec06769
feature - adding personal laptop among platform choices:
evenmatencio Jun 23, 2025
88232e4
refacto - the form bleuprint is now embedded in a class. This is moti…
evenmatencio Jun 23, 2025
b6e1154
refacto - the import export blueprint is now embedded in a class. Thi…
evenmatencio Jun 23, 2025
ccfb249
refacto - the methodology blueprint is now embedded in a class. This…
evenmatencio Jun 23, 2025
261e259
refacto - the metrics blueprint is now embedded in a class. This is m…
evenmatencio Jun 23, 2025
b81bbff
clean useless pieces of code
evenmatencio Jun 25, 2025
804e733
Comments from PR 56:
evenmatencio Jul 2, 2025
b842ddd
feature - adding a units row to the exported csv and the memory quant…
evenmatencio Jul 3, 2025
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 app.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def load_data_from_version(_, new_version:str):

# Load corresponding backend data
if new_version == CURRENT_VERSION:
new_data = load_data(os.path.join(DATA_DIR, 'latest'), version = CURRENT_VERSION)
new_data = load_data(os.path.join(DATA_DIR, 'latest'), version=CURRENT_VERSION)
else:
new_data = load_data(os.path.join(DATA_DIR, new_version), version=new_version)

Expand Down
11 changes: 7 additions & 4 deletions assets/0_styles_typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,16 @@ input, select, .Select, textarea {
font-size: 2.2rem;
}

#log-error-subtitle {
font-size: 12px ;
.error-message-title {
font-weight: 700;
}

#log-error-content {
.log-error-subtitle {
font-size: 14px ;
}

.log-error-content {
font-size: 12px ;
font-style: italic;
}


Expand Down
52 changes: 52 additions & 0 deletions assets/1_styles_layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,16 @@ hr {
margin-bottom: 20px;
}

.subform-div {
flex-direction: column;
font-size: 0.9em;
}

.subform-input {
margin-left: 20px;
margin-bottom: 10px;
}

.form-row > label {
margin-bottom: 7px;
width: 100%;
Expand Down Expand Up @@ -272,6 +282,30 @@ hr {
margin-top: 5px;
}

.location-and-custom-carbon-intensity {
width: 100%;
display: flex;
flex-direction: column;
}

.location-head-row {
width: 100%;
display: flex;
justify-content: flex-start;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
}

.location-head-row .box-fields {
width: 92%;
}

.location-head-row > label {
margin-bottom: 7px;
width: 100%;
}


/* REPORTING SCOPE */

Expand Down Expand Up @@ -454,6 +488,24 @@ hr {
margin-bottom: 12px;
}

.error-message-title {
margin-bottom: 14px;
}

.log-error-subtitle {
margin-bottom: 8px;
}

.log-error-content {
width:100%;
text-align: center;
padding: 5px;
border: rgb(220, 220, 220);
border-radius: 10px;
border-style: solid;
border-width: 2px;
}

.import-result{
margin-bottom: 6px;
border-width: 2px;
Expand Down
Loading