Skip to content

Commit

Permalink
Merge branch 'develop' into integration
Browse files Browse the repository at this point in the history
  • Loading branch information
perrotcap committed Nov 6, 2024
2 parents 6ddac4d + 8e6b8d5 commit 6aa396b
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 1 deletion.
3 changes: 2 additions & 1 deletion energy_models/core/techno_type/techno_disc.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ def update_default_values(self):

if 'initial_production' in self.get_data_in() and GlossaryEnergy.YearStart in self.get_data_in():
year_start = self.get_sosdisc_inputs(GlossaryEnergy.YearStart)
if year_start is not None:
initial_production = self.get_sosdisc_inputs('initial_production')
if year_start is not None and initial_production is None:
initial_production, _ = DatabaseWitnessEnergy.get_techno_prod(self.techno_name, year=year_start - 1)
self.update_default_value('initial_production', 'in', initial_production)

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
14 changes: 14 additions & 0 deletions energy_models/tests/to_fix/CalciumLoopingDiscipline.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
'''
Copyright 2024 Capgemini
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
'''
import pickle
from os.path import dirname

Expand Down
14 changes: 14 additions & 0 deletions energy_models/tests/to_fix/MonoEthanolAmineDiscipline.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
'''
Copyright 2024 Capgemini
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
'''
import pickle
from os.path import dirname

Expand Down
14 changes: 14 additions & 0 deletions energy_models/tests/to_fix/PiperazineProcessDiscipline.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
'''
Copyright 2024 Capgemini
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
'''
import pickle
from os.path import dirname

Expand Down

0 comments on commit 6aa396b

Please sign in to comment.