• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pymc-devs / pymc3 / 3335
87%

Build:
DEFAULT BRANCH: master
Ran 29 Nov 2016 10:36AM UTC
Jobs 6
Files 97
Run time 10min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
3335

push

travis-ci

twiecki
Fix the TypeError issue #994 on Windows. (#1550)

* Suggestion to fix the TypeError issue #994 on Windows.

Errors occurs because some ndarrays with dtype=int32
are passed to the function delta_logp which expects
ndarrays with dtype=int64 as inputs. Inputs are casted
with `ndarray.astype(int)`, but on Windows, the
Python 'int' type is treated as a 32-bit integer
by NumPy.

I suggest to remove the line with `f.trust_input = True`
to ensure that Theano always checks the inputs and
casts it if necessary and when possible.
This fix resolves the issue on my computer:

```
Python version:
2.7.12 |Continuum Analytics, Inc.| (default, Jun 29 2016, 11:07:13) [MSC v.1500 64 bit (AMD64)]
OS version:
Windows-8.1-6.3.9600
```

* Discrete super-class raises TypeError if dtype != 'int64'.

Arguments for delta_logp in Metropolis.astep() are now casted to 'int64'
when Metropolis handles a discrete model.

6 of 6 new or added lines in 2 files covered. (100.0%)

6627 of 7836 relevant lines covered (84.57%)

2.81 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
pymc3/distributions/distribution.py
1
100.0
pymc3/step_methods/metropolis.py
Jobs
ID Job ID Ran Files Coverage
1 3335.1 (TESTCMD=" -vv --with-timer --with-coverage --cover-package=pymc3 -e test_examples -e test_distributions" PYTHON_VERSION=${TRAVIS_PYTHON_VERSION}) 29 Nov 2016 10:47AM UTC 0
71.77
Travis Job 3335.1
2 3335.2 (TESTCMD=" -vv --with-timer --with-coverage --cover-package=pymc3 pymc3.tests.test_distributions pymc3.tests.test_examples" PYTHON_VERSION=${TRAVIS_PYTHON_VERSION}) 29 Nov 2016 10:39AM UTC 0
37.67
Travis Job 3335.2
3 3335.3 (TESTCMD=" -vv --with-timer --with-coverage --cover-package=pymc3 pymc3.tests.test_distributions_random" PYTHON_VERSION=${TRAVIS_PYTHON_VERSION}) 29 Nov 2016 10:36AM UTC 0
30.99
Travis Job 3335.3
4 3335.4 (TESTCMD=" -vv --with-timer --with-coverage --cover-package=pymc3 -e test_examples -e test_distributions" PYTHON_VERSION=${TRAVIS_PYTHON_VERSION}) 29 Nov 2016 10:47AM UTC 0
71.77
Travis Job 3335.4
5 3335.5 (TESTCMD=" -vv --with-timer --with-coverage --cover-package=pymc3 pymc3.tests.test_distributions pymc3.tests.test_examples" PYTHON_VERSION=${TRAVIS_PYTHON_VERSION}) 29 Nov 2016 10:39AM UTC 0
37.67
Travis Job 3335.5
6 3335.6 (TESTCMD=" -vv --with-timer --with-coverage --cover-package=pymc3 pymc3.tests.test_distributions_random" PYTHON_VERSION=${TRAVIS_PYTHON_VERSION}) 29 Nov 2016 10:43AM UTC 0
30.99
Travis Job 3335.6
Source Files on build 3335
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3335
  • a7410c20 on github
  • Prev Build on master (#3334)
  • Next Build on master (#3336)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc