Skip to content

Commit

Permalink
fix(irradiance): Change file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelkp committed Dec 7, 2023
1 parent e04b3a0 commit e37d1ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions honeybee_radiance_postprocess/results/annual_irradiance.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,10 @@ def annual_metrics_to_folder(
}
for metric, data in pattern.items():
metric_folder = folder.joinpath(metric)
extension = metric.split('_')[0]
for count, grid_info in enumerate(grids_info):
d = data[count]
full_id = grid_info['full_id']
output_file = metric_folder.joinpath(f'{full_id}.{extension}')
output_file = metric_folder.joinpath(f'{full_id}.res')
output_file.parent.mkdir(parents=True, exist_ok=True)
np.savetxt(output_file, d, fmt='%.2f')

Expand Down

0 comments on commit e37d1ba

Please sign in to comment.