I sent this message from an account which I think is unknown to the j
forum. Hope it doesn't appear twice.
-------- Forwarded Message --------
Subject: Fwd: read failure on Mac j903 beta-h
Date: Fri, 9 Apr 2021 14:14:33 -0400
From: JAMES PATRICK HARRINGTON <[email protected]>
To: [email protected] <[email protected]>
Begin forwarded message:
*From: *JAMES PATRICK HARRINGTON <[email protected]
<mailto:[email protected]>>
*Subject: **read failure on Mac j903 beta-h*
*Date: *April 9, 2021 at 1:10:11 PM EDT
*To: *[email protected] <mailto:[email protected]>
Running a program to plot some data from a text file, which has always
run under j902 with the jqt
front end, now fails under j903 beta-h (the first 903 I’ve installed -
installation nominal). But the same
program runs without any problem under j903 console. This in on my
Mac-mini OS Big Sur. I should
also note that the identical program encounters no problems on my Dell
laptop running Ubuntu linux
and j903 beta. Here is a fragment of the program, rtest.ijs, which
exhibits the failure:
*drct=: '/Users/jph/Desktop/TASCAM_recorder/'*
*load 'plot'*
*rtest=: {{ FrLf=. |: mread drct,x*
*Fr=. 0{FrLf*
*Lf=. 1{FrLf*
*ii=. i. maxi=. >: Fr I. maxF=. y*
*pd 'reset'*
*pd 'pensize 3'*
*pd (ii{Fr);(ii{Lf)*
*pd 'pdf' }}*
*
*
*Typical run under console:*
*
*
load'rtest.ijs'
'test.txt' rtest 70
This produces a nice plot and exits normally. But with jqt:
load'rtest.ijs'
'test.txt' rtest 70
|domain error: mread
| FrLf=.|: mread drct,x
mread is just
*mread=: (_&".)@('m'&fread)*
*
*
*JVERSION*
Engine: j903/j64avx2/darwin
Beta-h: commercial/2021-04-05T15:50:50
Library: 9.03.03
Qt IDE: 1.9.2/5.15.2(5.15.2)
Platform: Darwin 64
Installer: J903 install
InstallPath: /users/jph/j903
Any idea why fread fails under jqt j903 on a Mac but nowhere else?
It is important to note that the concatenation "mread drct,x" is
critical. If I just write "mread x" and
put the full *'/Users/jph/Desktop/TASCAM_recorder/test.txt' *as the left
argument, there is no problem.
Somehow jqt will not accept the drct,x argument to mread.
Thanks for any ideas.
Patrick
**
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm