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

QuantEcon.ecdf calls StatsBase.ecdf #196

Merged
merged 4 commits into from
Dec 19, 2017
Merged

QuantEcon.ecdf calls StatsBase.ecdf #196

merged 4 commits into from
Dec 19, 2017

Conversation

a-parida12
Copy link
Contributor

Fixes #186

@sglyon
Copy link
Member

sglyon commented Dec 18, 2017

Thank you @a-parida12, this is the right direction.

However I noticed that the tests are failing.

Here's my proposal for how to get them working again:

  1. still include("ecdf.jl") in QuantEcon.jl
  2. Delete everything that is currently in ecdf.jl
  3. In ecdf.jl, write the necessary code so that existing usage of QuantEcon.ECDF doesn't throw an error (as it does in the tests). I think this means writing a single line like @deprecate ECDF(x) StatsBase.ecdf(x)
  4. Change usage of ECDF to ecdf.jl in test/test_ecdf.jl
  5. Re-run the tests to make sure they pass.

Are you comfortable giving that a shot?

src/QuantEcon.jl Outdated
@@ -11,21 +11,22 @@ using DSP: TFFilter, freqz
using Primes: primes
using Compat: view, @compat

using StatsBase
import StatsBase:ecdf
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also replace these two lines with

using StatsBase: ecdf

This will make Julia only bring that one function from the StatsBase module into scope inside QuantEcon, helping us avoid cluttering up our namespace.

@sglyon
Copy link
Member

sglyon commented Dec 18, 2017

The last thing we need to do is add StatsBase to the REQUIRE file

All Comments incorporated

Fixes #186
Incorporated all Comments

Fixes #186
Fixed based suggestions @sglyon

Fixes #186
@codecov-io
Copy link

codecov-io commented Dec 19, 2017

Codecov Report

Merging #196 into master will decrease coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #196      +/-   ##
==========================================
- Coverage    90.8%   90.72%   -0.08%     
==========================================
  Files          24       24              
  Lines        1631     1682      +51     
==========================================
+ Hits         1481     1526      +45     
- Misses        150      156       +6
Impacted Files Coverage Δ
src/modeltools/types.jl 87.23% <0%> (ø)
src/markov/markov_approx.jl 94.91% <0%> (+0.2%) ⬆️

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 11069d3...957c956. Read the comment docs.

@a-parida12
Copy link
Contributor Author

Hi @sglyon,
Thank you for all the suggestion. I still have problems with codecov/project check which failed.

@sglyon
Copy link
Member

sglyon commented Dec 19, 2017

Looks good to me.

Thank you

@sglyon sglyon merged commit 344619a into QuantEcon:master Dec 19, 2017
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

Successfully merging this pull request may close these issues.

3 participants