-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #258 from Boavizta/dev
Internal code refactoring and easier process for adding a cloud instance
- Loading branch information
Showing
70 changed files
with
10,017 additions
and
8,338 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
id,name,units,model_range,manufacturer,family,core_units,tdp,die_size_per_core,USAGE.time_workload,USAGE.use_time_ratio,USAGE.hours_life_time,CONSUMPTION_PROFILE.params | ||
DEFAULT,,"1;1;1",,,,24;1;64,,,50;0;100,1,26280,"{'a': 171.2, 'b': 0.0354, 'c': 36.89, 'd': -10.13}" | ||
id,name,units,model_range,manufacturer,family,core_units,tdp,threads,die_size_per_core,USAGE.time_workload,USAGE.use_time_ratio,USAGE.hours_life_time,CONSUMPTION_PROFILE.params | ||
DEFAULT,,"1;1;1",,,,24;1;64,,,,50;0;100,1,26280,"{'a': 171.2, 'b': 0.0354, 'c': 36.89, 'd': -10.13}" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,8 @@ | ||
import boaviztapi.utils.roundit as rd | ||
from boaviztapi.model import ComputedImpacts | ||
from boaviztapi.model.component.component import Component | ||
from boaviztapi.model.impact import ImpactFactor | ||
from boaviztapi.service.factor_provider import get_impact_factor | ||
|
||
|
||
class ComponentAssembly(Component): | ||
NAME = "ASSEMBLY" | ||
|
||
def __init__(self, **kwargs): | ||
super().__init__(**kwargs) | ||
|
||
def impact_embedded(self, impact_type: str) -> ComputedImpacts: | ||
impact_factor = ImpactFactor( | ||
value=get_impact_factor(item='assembly', impact_type=impact_type)['impact'], | ||
min=get_impact_factor(item='assembly', impact_type=impact_type)['impact'], | ||
max=get_impact_factor(item='assembly', impact_type=impact_type)['impact'] | ||
) | ||
|
||
return impact_factor.value, impact_factor.min, impact_factor.max, ["End of life is not included in the calculation"] | ||
|
||
def impact_use(self, impact_type: str, duration: float) -> ComputedImpacts: | ||
raise NotImplementedError | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.