Skip to content

Commit

Permalink
add codecov to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Oct 11, 2023
1 parent 88d55e3 commit f4dfea6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![Continuous Integration](https://github.com/pysal/spglm/actions/workflows/testing.yml/badge.svg)](https://github.com/pysal/spglm/actions/workflows/testing.yml)
[![Documentation Status](https://readthedocs.org/projects/spglm/badge/?version=latest)](https://spglm.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/spglm.svg)](https://badge.fury.io/py/spglm)
[![codecov](https://codecov.io/gh/pysal/spglm/branch/main/graph/badge.svg)](https://codecov.io/gh/pysal/spglm)


This module is an adaptation of a portion of [GLM functionality from the
Expand Down
2 changes: 1 addition & 1 deletion spglm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def _bit_length_26(x):
from numpy.lib._version import NumpyVersion
except ImportError:
import re

######################################################################
# TODO - remove GH#39
string_types = basestring # noqa F821 - `nan_dot` not defined - should remove

Check warning on line 22 in spglm/utils.py

View check run for this annotation

Codecov / codecov/patch

spglm/utils.py#L22

Added line #L22 was not covered by tests
Expand Down
6 changes: 4 additions & 2 deletions spglm/varfuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ def deriv(self, mu):
########################################################################
# `approx_fprime_cs` is imported by unused
from statsmodels.tools.numdiff import approx_fprime_cs # noqa F401

Check warning on line 120 in spglm/varfuncs.py

View check run for this annotation

Codecov / codecov/patch

spglm/varfuncs.py#L120

Added line #L120 was not covered by tests
#return approx_fprime_cs(mu, self) # TODO fix breaks in `fabs

# return approx_fprime_cs(mu, self) # TODO fix breaks in `fabs
########################################################################

from statsmodels.tools.numdiff import approx_fprime

Check warning on line 125 in spglm/varfuncs.py

View check run for this annotation

Codecov / codecov/patch

spglm/varfuncs.py#L125

Added line #L125 was not covered by tests

# TODO: diag is workaround problem with numdiff for 1d
return np.diag(approx_fprime(mu, self))

Expand Down

0 comments on commit f4dfea6

Please sign in to comment.