virocon-organization / viroconweb

A software to compute environmental contours. Django web-application package.
MIT License
2 stars 1 forks source link

On heroku fitting fails since the Fit object has not inspection data attribute #161

Closed ahaselsteiner closed 6 years ago

ahaselsteiner commented 6 years ago

I'm submitting a ...

Expected behavior

How should it work (with the bug fixed or the feature implemented)? After the fit is done it should be plotted for visual inspection.

Screenshot

Actual behavior

How does it currently work (with the bug causing problems or without the feature)? The Fit does not have the multiple_fit_inspection_data attribute and consequently cannot be plotted. An error occurs which is currently not properly handled.

This problem occurs only on heroku, locally it works fine.

Screenshot image

Steps to reproduce the problem (how to see the actual behavior)

  1. Go to https://serene-sierra-98066.herokuapp.com
  2. Fit a Weibull, Weibull (none, none) model to the test data
  3. Get the error message
ahaselsteiner commented 6 years ago

The errors get caught now own heroku:

image

ahaselsteiner commented 6 years ago

Kai hat the same issue locally. He could solve it by: pip install --upgrade --force-reinstall https://github...

ahaselsteiner commented 6 years ago

This could be solved by forcing a reinstall of viroconcom with: heroku run pip install --upgrade --force-reinstall https://github.com/ahaselsteiner/viroconcom/archive/master.zip

image