Skip to content

Commit

Permalink
fix(recipe): Revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelkp committed Jun 28, 2023
1 parent ae9c47b commit 8dedb31
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions pollination/three_phase/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ def prepare_three_phase(
):
return [
{
'from': ThreePhaseInputsPreparation()._outputs.multiplication_info
'from': ThreePhaseInputsPreparation()._outputs.multiplication_info,
'to': '../../calcs/3_phase/info/multiplication_info.json'
},
{
'from': ThreePhaseInputsPreparation()._outputs.grouped_apertures_info,
Expand All @@ -298,12 +299,18 @@ def prepare_three_phase(
}
]

@task(template=ReadJSONList, needs=[prepare_three_phase])
def multiplication_info_to_json(
self, src=prepare_three_phase._outputs.multiplication_info
):
return [{'from': ReadJSONList()._outputs.data}]

@task(
template=ThreePhaseMatrixCalculation,
needs=[
create_rad_folder, prepare_multiphase,
create_total_sky, create_sky_dome,
prepare_three_phase
prepare_three_phase, multiplication_info_to_json
],
sub_folder='calcs/3_phase',
sub_paths={
Expand All @@ -314,7 +321,7 @@ def calculate_three_phase_matrix_total(
self,
model_folder=create_rad_folder._outputs.model_folder,
grouped_apertures_folder=prepare_three_phase._outputs.grouped_apertures_folder,
multiplication_info=prepare_three_phase._outputs.multiplication_info,
multiplication_info=multiplication_info_to_json._outputs.data,
receivers=create_rad_folder._outputs.receivers,
view_mtx_rad_params=view_mtx_rad_params,
daylight_mtx_rad_params=daylight_mtx_rad_params,
Expand Down
2 changes: 1 addition & 1 deletion pollination/three_phase/three_phase/preparation.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get_three_phase_combinations(
'calculation.', source='model/sender/_info.json'
)

multiplication_info = Outputs.list(
multiplication_info = Outputs.file(
description='A JSON file with matrix multiplication information.',
source='multiplication_info.json'
)

0 comments on commit 8dedb31

Please sign in to comment.