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] Seasonal Adjustment: do not fail on negative values #35

Merged
merged 1 commit into from Dec 18, 2017

Conversation

Projects
None yet
3 participants
@jerneju
Copy link
Contributor

commented Dec 18, 2017

Issue

Widget crashes when gets data which cannot be handled.

Description of changes

Error is shown.

Includes
  • Code changes
  • Tests
  • Documentation
self.Error.seasonal_decompose_fail(str(ex))
adjusted_data = None

if adjusted_data:

This comment has been minimized.

Copy link
@kernc

kernc Dec 18, 2017

Member

adjusted_data is not None

@jerneju jerneju force-pushed the jerneju:seasonaladjustment-negative branch from 78dce05 to 872bf73 Dec 18, 2017

@jerneju

This comment has been minimized.

Copy link
Contributor Author

commented Dec 18, 2017

@jerneju jerneju force-pushed the jerneju:seasonaladjustment-negative branch from 872bf73 to 1690378 Dec 18, 2017

@codecov-io

This comment has been minimized.

Copy link

commented Dec 18, 2017

Codecov Report

Merging #35 into master will increase coverage by 0.15%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
+ Coverage   67.02%   67.18%   +0.15%     
==========================================
  Files           7        7              
  Lines         643      643              
  Branches       99       99              
==========================================
+ Hits          431      432       +1     
+ Misses        158      157       -1     
  Partials       54       54
Impacted Files Coverage Δ
orangecontrib/timeseries/timeseries.py 73.21% <0%> (+1.78%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7490f39...0f4f18e. Read the comment docs.

@kernc

This comment has been minimized.

Copy link
Member

commented Dec 18, 2017

Is the accompanying test ever hit on Travis?

@jerneju jerneju force-pushed the jerneju:seasonaladjustment-negative branch from 1690378 to 0f4f18e Dec 18, 2017

@kernc kernc merged commit 7e3bbcc into biolab:master Dec 18, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@jerneju jerneju deleted the jerneju:seasonaladjustment-negative branch Dec 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.