Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix following runtime warnings #5

Open
pjayathissa opened this issue May 19, 2019 · 2 comments
Open

Fix following runtime warnings #5

pjayathissa opened this issue May 19, 2019 · 2 comments
Assignees

Comments

@pjayathissa
Copy link
Contributor

calculate_chart.py:134: RuntimeWarning: divide by zero encountered in log
  dew_point_compare_forced[i][k]=243.04*(np.log(RH_psy[k])+((17.625*temp_air[i])/(243.04+temp_air[i])))/(17.625-np.log(RH_psy[k])-((17.625*temp_air[i])/(243.04+temp_air[i])))-T_MRT_forced_psy[i][k]

calculate_chart.py:134: RuntimeWarning: invalid value encountered in double_scalars
  dew_point_compare_forced[i][k]=243.04*(np.log(RH_psy[k])+((17.625*temp_air[i])/(243.04+temp_air[i])))/(17.625-np.log(RH_psy[k])-((17.625*temp_air[i])/(243.04+temp_air[i])))-T_MRT_forced_psy[i][k]

calculate_chart.py:155: RuntimeWarning: invalid value encountered in power
  v_forced_v[i][k] = np.power(((MR-Q_rad_forced_v[i][k])/(10.1*(LR*w*(P_sat_skin_psy[i]-P_sat_air_psy[i][k])+(temp_skin[i]-temp_air[i])))),(1/0.61))
@eteitelb
Copy link
Collaborator

i think this is fixed now with the numpy arrays

@pjayathissa
Copy link
Contributor Author

@eteitelb Just one last runtime warning

Warning: The following kwargs were not used by contour: 'interpolation', 'fontsize', 'dpi'
  CS3=plt.contourf(Y, psy_sat, T_MRT_psy, cmap = 'jet', levels=levels_contour,interpolation='sinc', fontsize = 20, dpi = 1200, alpha = 0.6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants