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

Remove pyscaffold #48

Merged
merged 1 commit into from
Apr 26, 2020
Merged

Remove pyscaffold #48

merged 1 commit into from
Apr 26, 2020

Conversation

pbrod
Copy link
Member

@pbrod pbrod commented Apr 18, 2020

Ongoing work to remove dependence on pyscaffold as well as simplifying the wafo.stats module.

Needs further testing before merging.

@codecov
Copy link

codecov bot commented Apr 20, 2020

Codecov Report

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

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #48       +/-   ##
===========================================
- Coverage   53.06%   35.81%   -17.26%     
===========================================
  Files          92       86        -6     
  Lines       18946    19563      +617     
  Branches     1952     2083      +131     
===========================================
- Hits        10054     7006     -3048     
- Misses       8362    12162     +3800     
+ Partials      530      395      -135     
Impacted Files Coverage Δ
src/wafo/__init__.py 100.00% <ø> (ø)
src/wafo/bitwise.py 100.00% <ø> (ø)
src/wafo/conftest.py 100.00% <ø> (ø)
src/wafo/containers.py 30.00% <ø> (ø)
src/wafo/covariance/__init__.py 100.00% <ø> (ø)
src/wafo/covariance/core.py 39.21% <ø> (ø)
src/wafo/covariance/estimation.py 58.22% <ø> (ø)
src/wafo/covariance/tests/conftest.py 100.00% <ø> (ø)
src/wafo/covariance/tests/test_covariance.py 100.00% <ø> (ø)
src/wafo/data/__init__.py 100.00% <ø> (ø)
... and 144 more

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 8d337f0...3380ebd. Read the comment docs.

@ghost
Copy link

ghost commented Apr 25, 2020

DeepCode's analysis on #3380eb found:

⚠️ 1 warning 2 minor issues. ✔️ 1 issue were fixed.

👉 View analysis in DeepCode’s Dashboard

☺️ If you want to provide feedback on our bot, here is how to contact us.

  * Moved files from ./wafo to ./src/wafo in order to insulate the package from the setup.py folder.
  * Updated setup.cfg and setup.py to support /src layout.
  * Moved sources from ./src/wafo to ./ and updated setup.py accordingly.
  * Removed dependence on pyscaffold in setup.py

Fixed all tests (except wafo.stats.tests) so they work again:
 * Replaced "seed = int(floor(random.rand(1) * 1e10))" with "seed = int(floor(random.rand(1) * 2.1e9))" in wafo.gaussian because the maximum long int in c is about 2.1e9 which gives an error if seed is larger than this value.
 * Replaced "pc = p.clip(min=0, max=1)" with "pc = p.clip(min=_TINY, max=1-_EPS)"  in order to avoid division by zero in log(pc) and log1p(-pc) in the _logit function in wafo.kdetools.py

 * Transposed the result from BKRegression.get_grid method in kdetools.py to avoid shape error when the smoothing parameter hs_e is an array.
 * Refactored BKRegression._wilson_score so it evaluates the Wilson score interval in a more numerically stable way when n is zero.

 * Fixed _findrfc3_astm and _findrfc5_astm in numba_misc.py so the test works again.

Other changes:
 * Commented out unused code in _findrfc3_astm and _findrfc5_astm.
 * Made src/wafo/info.py equal to README.rst
 * Renamed CHANGES.rst to CHANGELOG.rst
 * Added build_package.py
 * Simplified wafo.stats
 * Removed obsolete private submodules of wafo.stats.
 * Dropped support for python 2.7
 * Removed compatibility code for python 2.7 i.e. "from __future__ ...." statements
 * Replace "n_bad = np.sum(cond0)" with "n_bad = np.count_nonzero(cond0)" in order to optimize for speed in wafo.stats._distn_infrastructure.py
 * Made sure that the 3'rd argument (num) to numpy.linspace is an integer because it expects an int and will crash on passing a float in kdetools.py
 * Had to include static libs in building the fortran extensions on Windows but not for Linux.
 * Modified AICC calculation in BKRegression.
 * Add plot of the the AICC score in the check_bkregression function in demo.py
 * Added test of BKRegression.prb_smoothed
 * Splitted the test_bk_regression_with_wilson into several smaller tests.
 * Skipping test_bk_regression_with_wilson because it is an unstable test.
 * Made test_bk_regression_with_beta less strict.....
@pbrod pbrod force-pushed the remove_pyscaffold branch from 49bdadc to 3380ebd Compare April 26, 2020 01:13
@pbrod pbrod merged commit 5e0bb7d into master Apr 26, 2020
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.

1 participant