Skip to content

Commit

Permalink
Merge pull request #22 from lorenzodonadio/patch-1
Browse files Browse the repository at this point in the history
Fixed bug in the vectorized example->Update calc_pmv_ppd.py
  • Loading branch information
FedericoTartarini committed Mar 1, 2022
2 parents 934a1c9 + 7d518e7 commit fc143fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/calc_pmv_ppd.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@
results = np.vectorize(pmv_ppd)(ta, tr, v_rel, rh, met, clo_d, 0, "ashrae", "SI")

# split the pmv column in two since currently contains both pmv and ppd values
df_ = pd.DataFrame(results)
#results is an np.array and should be cast into a list before converted to a dataframe
df_ = pd.DataFrame(list(results))
df = pd.concat([df, df_], axis=1, sort=False)

end = time.time()
Expand Down

0 comments on commit fc143fe

Please sign in to comment.