ContextLab / ContextLab/hypertools-paper-notebooks
does not seem to work with Python 3
- Dominant language
- Jupyter Notebook
- Stars
- 148
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
Here is an error when running the hypercube notebook which I believe is due to Pyhton 3 issues.
I am using version 0.4.2 of hypertools.
DIMS: 3
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in ()
1 for dims in range(3,9):
2 print('DIMS: ' + str(dims))
----> 3 hyp.plot(hypercube(dims), 'k.')
in hypercube(ndims, res, x_min, x_max)
1 def hypercube(ndims=4, res=100, x_min=-1, x_max=1):
2 length = x_max - x_min
----> 3 vertices = (ff2n(ndims) + 1) / 2
4 vertices *= length
5 vertices += x_min
~\Anaconda3\lib\site-packages\pyDOE\doe_factorial.py in ff2n(n)
113 [ 1., -1., 1.],
114 [-1., 1., 1.],
--> 115 [ 1., 1., 1.]])
116
117 """
~\Anaconda3\lib\site-packages\pyDOE\doe_factorial.py in fullfact(levels)
76 lvl = []
77 for j in range(levels[i]):
---> 78 lvl += [j]*int(level_repeat)
79
80 rng = lvl*int(range_repeat)
TypeError: 'numpy.float64' object cannot be interpreted as an integer
ALan
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.