Eric,
This seems to fix it for windows on my system:
j.py
86 p= numpy.asarray(d.shape)
->
86 p= numpy.asarray(d.shape,c_longlong)
On 2/19/2018 10:20, Eric Iverson wrote:
Mitchell - python
Looks like something is wrong with j.set on windows.
Please try a simpler example:
j.do('abc=: i.2 3')
q= j.get('abc')
j.set('ghi',q)
j.get('ghi')
Also try with bytes rather than numpy array.
j.set('foo','wert')
j.get('foo')
I am reluctant now to divert to python on windows. Help from anyone with
python knowledge and a windows instal would be much appreciated.
On Mon, Feb 19, 2018 at 7:26 AM, David Mitchell <[email protected]>
wrote:
I suspect it is not intended.
I get this result in Centos 7:
Python 3.6.4 (default, Feb 19 2018, 01:54:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
import j
j.init(True)
j.do('abc=: i.2 3')
0
q= j.get('abc')
j.set('ghi',23+q)
j.get('ghi')
array([[23, 24, 25],
[26, 27, 28]])
q
array([[0, 1, 2],
[3, 4, 5]])
On 2/19/2018 05:01, bill lam wrote:
array([], shape=(12884901890, 0), dtype=int64)
the shape returned is strange, is it intended?
Пн, 19 фев 2018, David Mitchell написал(а):
I tried it on win10pro and got this:
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import j
j.init(True)
j.do('abc=: i.2 3')
0
q= j.get('abc')
q
array([[0, 1, 2],
[3, 4, 5]], dtype=int64)
j.set('ghi',23+q)
23+q
array([[23, 24, 25],
[26, 27, 28]], dtype=int64)
j.get('ghi')
array([], shape=(12884901890, 0), dtype=int64)
q1=j.get('ghi')
q1
array([], shape=(12884901890, 0), dtype=int64)
j.test()
b'nib/708-46j/ateb708j/j/sdaolnwod/md/sresu/:c'
[[0 1 2]
[3 4 5]]
[[0.5 1.5 2.5]
[3.5 4.5 5.5]]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\Python36\lib\j.py", line 104, in test
set('xi',xi)
File "C:\Program Files\Python36\lib\j.py", line 93, in set
raise AssertionError('J: set arg not a name')
AssertionError: J: set arg not a name
On 2/18/2018 15:24, Eric Iverson wrote:
I have updated addons/api/python3 to fix the reported problems. Please
try
again and report back problems (or success and general happiness).
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm