Re: [Scilab-users] using csvRead

2016-10-15 Thread Samuel Gougeon

Le 15/10/2016 21:16, Samuel Gougeon a écrit :

Hello Philipp,

Le 14/10/2016 00:08, Philipp Mühlmann a écrit :

Dear Scilab users,

having a data file (*.cvs) containg following format:


HEADER-Line
dd.mm., HH:MM:SS.MS , value01, value02

dd = day
mm = month
 = year

HH = hour
MM = minute
SS = second
Ms = milli second

ValueXY = numerical value

Is it possible to use cvsRead in such a way to define the separator 
beeing ',' and ':' at the same time?

.
Yes and no: Yes because each character of the "separator" option is 
(sometimes) considered as a

separator. And no, because it sometimes fails.
I was designing an example to add to the csvRead() page, when a found 
this bug:


--> mputl("12.08.2016, 13:54:18.45, 3.145, 548.4", TMPDIR+"/test.csv")

--> r = "''"+csvRead("test.csv","8.",[],"string")+"''"
 r  =
!'12'  '0'  '2016, 13:54:1'  '45, 3'  '145, 54'  '4'  !
--> // it works: both "8" and "." are *separately* considered as 
separators


--> // now trying with "," and ":":
--> r = "''"+csvRead("test.csv",",:", [], "string")+"''"
--> r = "''"+csvRead("test.csv",",:", [], "string")+"''"
 r  =
 '12.08.2016, 13:54:18.45, 3.145, 548.4'
--> // The row is kept as is: no splitting!
--> // We could expect: ['12.08.2016' ' 13' '54' '18.45' ' 3.145' ' 
548.4']

--> //  (with leading spaces, since they are not set as separators)
-->

There are already 10 pending reported bugs about csvRead(). One more.

Report : http://bugzilla.scilab.org/14809

Each char of a separator with length > 1 is considered a specific 
separator only if the whole separator pattern is met in the read row. 
Otherwise, no splitting is done. Hence,
--> r = csvRead(TMPDIR+"test.csv","8.",[],"string") // splits the 
"12.08.2016" row, while

-->r = csvRead(TMPDIR+"test.csv",".8",[],"string") // does not!

Samuel Gougeon

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead vs mfscanf and fscanfMat

2016-10-15 Thread Samuel Gougeon

Hello Rafael,

Le 15/10/2016 20:49, Rafael Guerra a écrit :

.../...

The results for a 50,000-lines input ASCII file are:
time1= 0.686404   // mfscanf
time2= 0.499203   // fscanfMat
time3= 35.3966// csvRead

.
Thanks for these very convincing results.
I thought that evstr() is vectorized because it is so on my PC, after 
having worked on it.

But a trivial improvement was still unsubmitted.
Repaired: https://codereview.scilab.org/#/c/18586/

Despite this improvement fasten evstr() by a factor > 10, this is not 
enough to reach mfscanf()'s speed.


BR
Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead

2016-10-15 Thread Samuel Gougeon

Hello Philipp,

Le 14/10/2016 00:08, Philipp Mühlmann a écrit :

Dear Scilab users,

having a data file (*.cvs) containg following format:


HEADER-Line
dd.mm., HH:MM:SS.MS , value01, value02

dd = day
mm = month
 = year

HH = hour
MM = minute
SS = second
Ms = milli second

ValueXY = numerical value

Is it possible to use cvsRead in such a way to define the separator 
beeing ',' and ':' at the same time?

.
Yes and no: Yes because each character of the "separator" option is 
(sometimes) considered as a

separator. And no, because it sometimes fails.
I was designing an example to add to the csvRead() page, when a found 
this bug:


--> mputl("12.08.2016, 13:54:18.45, 3.145, 548.4", TMPDIR+"/test.csv")

--> r = "''"+csvRead("test.csv","8.",[],"string")+"''"
 r  =
!'12'  '0'  '2016, 13:54:1'  '45, 3'  '145, 54'  '4'  !
--> // it works: both "8" and "." are *separately* considered as separators

--> // now trying with "," and ":":
--> r = "''"+csvRead("test.csv",",:", [], "string")+"''"
--> r = "''"+csvRead("test.csv",",:", [], "string")+"''"
 r  =
 '12.08.2016, 13:54:18.45, 3.145, 548.4'
--> // The row is kept as is: no splitting!
--> // We could expect: ['12.08.2016' ' 13' '54' '18.45' ' 3.145' ' 548.4']
--> //  (with leading spaces, since they are not set as separators)
-->

There are already 10 pending reported bugs about csvRead(). One more.

Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead vs mfscanf and fscanfMat

2016-10-15 Thread Rafael Guerra
Hi Samuel,

Please check test code here below, comparing csvRead vs mfscanf and fscanfMat 
for the asci format used by Philipp and a file with 50,000 lines of data.
On my laptop it takes about 35 s to run mainly because of evstr function, which 
is avoided in the mfscanf and fscanfMat methods as shown.


// Simple test of mfscanf, fscanfMat and csvRead methods
//START OF CODE
clear;
txt = [ "HEADER-Line",
"01.12.2015, 01:15:00.12, 1.1, -2.2"];

u = mopen("myfile.txt","w");
mfprintf(u,"%s\n",txt(1));
mfprintf(u,"%s\n",repmat(txt(2),5,1));  //output file with 50,000 lines
mclose(u)

timer();

// SOLUTION#1: mfscanf
u = mopen("myfile.txt","r");
h = mfscanf(1,u,"%s\n");
r = mfscanf(-1,u,"%d.%d.%d, %d:%d:%d.%d, %f, %f\n");
mclose(u)
r = r(:,:);  //to convert from mlist of ctype to matrix of constant type
t1 = timer();


// SOLUTION#2: fscanfMat
u = mopen("myfile.txt","r");
tx = mgetl(u,-1)
mclose(u);
tx = tx(2:$);  // get rid of header line
tx1 = part(tx,1:24);  // get date and time
tx2 = part(tx,25:$);  // get numeric data values
// Now get rid of separators:
tx1 = strsubst(tx1,'.',' ');
tx1 = strsubst(tx1,':',' ');
tx1 = strsubst(tx1,',',' ');
tx2 = strsubst(tx2,',',' ');
tx = tx1 + tx2; // regroups all data but now with numeric values only
fd = mopen("temp.bak","w");
mputl(tx,fd);
mclose(fd);
m = fscanfMat('temp.bak')
mdelete('temp.bak');
t2 = timer();

// SOLUTION#3: csvRead
q = csvRead("myfile.txt",",",[],"string",[":", ","],[],[],1);
tx1 = q(:,1);
tx2 = q(:,2:$);
q2 = evstr(tx2);  // Most time consuming step
// (plus, work will still be required to handle dates in txt1)
t3 = timer();

disp( [tx1(1,:) string(q2(1,:))], r(1,:), m(1,:) )
printf("\ntime1= %g\ntime2= %g\ntime3= %g",t1,t2,t3)
//END OF CODE

The results for a 50,000-lines input ASCII file are:
   time1= 0.686404
   time2= 0.499203
   time3= 35.3966

Regards,
Rafael


From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Samuel Gougeon
Sent: Saturday, October 15, 2016 7:36 PM
To: Users mailing list for Scilab 
Subject: Re: [Scilab-users] using csvRead

Le 15/10/2016 19:16, Rafael Guerra a écrit :
Hi Samuel,
 
As the data is loaded by csvRead as strings in the example below (if loading as 
doubles then we get NaN's), it will require further processing to convert it to 
numeric (using evstr, tokens or other).
For very large data files, this seems to be rather slow compared to the mfscanf 
or fscanfMat solutions.
 
What do you think?
.
AFAIK, fscanfMat() is very stiff. It can parse files only for numbers, with no 
interstitial contents.
I know no benchmark comparing csvRead() + evstr() vs mfscanf(). Despite evstr() 
is vectorized, you may be right. Explicit results would be interesting.
mfscanf() requires the structure of a row been explicitly known. But then it 
looks certainly the most versatile and adaptable solution to read and split it.
csvRead() requires just to know the separator.

Samuel
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead

2016-10-15 Thread Samuel Gougeon

Le 15/10/2016 19:32, Rafael Guerra a écrit :


Thanks Samuel, but I could not see where does it say how can we 
convert a mlist of ctype to a regular matrix, so that we can use all 
usual matrix operations. Could you please advise.




You are right, the *cblock* type is nowhere documented. Simple tests 
show that it is similar to -- but more handy than -- a row of cells:


-->b = msscanf(-1,['012345 abc zoo';"457.1 tfr 845"],'%f %s %s')
 b  =
  12345  abc  zoo
  457.10001  tfr  845

-->b(:,1), typeof(b(:,1))
 ans  =
12345.
457.10001
 ans  =
 constant

-->b(:,2), typeof(b(:,2))
 ans  =
!abc  !
! !
!tfr  !
 ans  =
 string

-->b(1,:)
 ans =
  12345  abc  zoo  // Yeh!

Searching for "cblock" in the help shows that, apart for Xcos, this 
mtype is used only by m*scanf().
Its addressing indices are exactly what we could expect for addressing 
cells contents, with no specific useless and awkward {} insertors or 
extractors.
[ BTW, {} yield an error at Scilab 5 compilation time. So the same macro 
code can't be compiled with Scilab 5 and Scilab 6 as soon as {} 
indexation is used].


Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead

2016-10-15 Thread Samuel Gougeon

Le 15/10/2016 19:16, Rafael Guerra a écrit :


Hi Samuel,

As the data is loaded by csvRead as strings in the example below (if 
loading as doubles then we get NaN’s), it will require further 
processing to convert it to numeric (using evstr, tokens or other).


For very large data files, this seems to be rather slow compared to 
the mfscanf or fscanfMatsolutions.


What do you think?


.
AFAIK, fscanfMat() is very stiff. It can parse files only for numbers, 
with no interstitial contents.
I know no benchmark comparing csvRead() + evstr() vs mfscanf(). Despite 
evstr() is vectorized, you may be right. Explicit results would be 
interesting.
mfscanf() requires the structure of a row been explicitly known. But 
then it looks certainly the most versatile and adaptable solution to 
read and split it.

csvRead() requires just to know the separator.

Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead

2016-10-15 Thread Rafael Guerra
Thanks Samuel, but I could not see where does it say how can we convert a mlist 
of ctype to a regular matrix, so that we can use all usual matrix operations. 
Could you please advise.

PS: in the example under discussion, doing:   r=r( :,: );  seems to do the 
trick.


From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Samuel Gougeon
Sent: Saturday, October 15, 2016 7:26 PM
To: Users mailing list for Scilab 
Subject: Re: [Scilab-users] using csvRead

Le 15/10/2016 18:58, Rafael Guerra a écrit :
Hi Serge,

One question:
For some strange reason, the variable 'r' is in this case a mlist of type 
cblock and not a matrix of type constant.
To convert it to constant, it seems that we need a further instruction, such 
as:   r=r( : , : );
Any comments on this?
This is fully documented: https://help.scilab.org/docs/6.0.0/en_US/mfscanf.html
It is possible to specify several output variables to collect field columns one 
by one.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead

2016-10-15 Thread Samuel Gougeon

Le 15/10/2016 18:58, Rafael Guerra a écrit :


Hi Serge,

One question:

For some strange reason, the variable ‘r’ is in this case a mlist of 
type cblock and not a matrix of type constant.


To convert it to constant, it seems that we need a further 
instruction, such as:r=r( : , : );


Any comments on this?

This is fully documented: 
https://help.scilab.org/docs/6.0.0/en_US/mfscanf.html
It is possible to specify several output variables to collect field 
columns one by one.


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead

2016-10-15 Thread Rafael Guerra
Hi Samuel,

As the data is loaded by csvRead as strings in the example below (if loading as 
doubles then we get NaN's), it will require further processing to convert it to 
numeric (using evstr, tokens or other).
For very large data files, this seems to be rather slow compared to the mfscanf 
or fscanfMat solutions.

What do you think?

Regards,
Rafael

From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Samuel Gougeon
Sent: Saturday, October 15, 2016 5:55 PM
To: Users mailing list for Scilab 
Subject: Re: [Scilab-users] using csvRead

Le 15/10/2016 15:45, Samuel Gougeon a écrit :
Hello

Le 14/10/2016 00:08, Philipp Mühlmann a écrit :
Dear Scilab users,
having a data file (*.cvs) containg following format:

HEADER-Line
dd.mm., HH:MM:SS.MS, value01, value02

dd = day
mm = month
 = year
HH = hour
MM = minute
SS = second
Ms = milli second
ValueXY = numerical value

Is it possible to use cvsRead in such a way to define the separator beeing ',' 
and ':' at the same time?
Beside the solution provided by Serge, if you wish to stick to csvRead(), have 
you tried using its "substitute" option, with a [":" ","] value?
I didn't, but would be interested by results.
.
It works: the substitution is done before the splitting.
Example:
The file.csv content:

Header line
12.08.2016, 13:54:18.45, 3.145, 548.4


-->csvRead("file.csv",",",[],"string",[":", ","],[],[],1)
 ans  =
!12.08.2016   13  54  18.45   3.145   548.4  !

Samuel
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead

2016-10-15 Thread Rafael Guerra
Hi Serge,

One question:
For some strange reason, the variable 'r' is in this case a mlist of type 
cblock and not a matrix of type constant.
To convert it to constant, it seems that we need a further instruction, such 
as:   r=r( : , : );
Any comments on this?

Regards,
Rafael


From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Serge Steer
Sent: Friday, October 14, 2016 8:52 PM
To: Users mailing list for Scilab 
Subject: Re: [Scilab-users] using csvRead

you can use the mfscanf function:

u=mopen("myfile","r");
h=mfscanf(1,u,"%s\n");
r=mfscanf(-1,u,"%d.%d.%d, %d:%d:%f, %f, %f\n");
mclose(u)

Serge Steer

Le 14/10/2016 à 00:08, Philipp Mühlmann a écrit :
Dear Scilab users,
having a data file (*.cvs) containg following format:

HEADER-Line
dd.mm., HH:MM:SS.MS, value01, value02

dd = day
mm = month
 = year
HH = hour
MM = minute
SS = second
Ms = milli second
ValueXY = numerical value

Is it possible to use cvsRead in such a way to define the separator beeing ',' 
and ':' at the same time?
Background:

desired Matrix after reading the file is
M = [dd mm  HH MM SS MS value1 value2]

Thank you,
Philipp

--
In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.

There we have the salad.




___

users mailing list

users@lists.scilab.org

http://lists.scilab.org/mailman/listinfo/users


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Fwd: Re: Fwd: plotxxyyy

2016-10-15 Thread Samuel Gougeon

Le 13/10/2016 14:05, Frieder Nikolaisen a écrit :


Dear community,

thank you for you support. I get now wonderful plots.

There is still a feature missing: Plot two has not x grid. *How to add 
a grid without a axis?* (I tried a bit with newaxis... no success)


Aaaarr.. I have forgotten this bug, reported at 
http://bugzilla.scilab.org/13564
An additional evidence that the grid visibility must become independent 
from the axis visibility.


BR
Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead

2016-10-15 Thread Samuel Gougeon

Le 15/10/2016 15:45, Samuel Gougeon a écrit :

Hello

Le 14/10/2016 00:08, Philipp Mühlmann a écrit :

Dear Scilab users,

having a data file (*.cvs) containg following format:


HEADER-Line
dd.mm., HH:MM:SS.MS , value01, value02

dd = day
mm = month
 = year

HH = hour
MM = minute
SS = second
Ms = milli second

ValueXY = numerical value

Is it possible to use cvsRead in such a way to define the separator 
beeing ',' and ':' at the same time?
Beside the solution provided by Serge, if you wish to stick to 
csvRead(), have you tried using its "substitute" option, with a [":" 
","] value?
I didn't, but would be interested by results. 

.
It works: the substitution is done *before* the splitting.
Example:
The file.csv content:

Header line
12.08.2016, 13:54:18.45, 3.145, 548.4


-->csvRead("file.csv",",",[],"string",[":", ","],[],[],1)
 ans  =
!12.08.2016   13  54  18.45   3.145   548.4  !

Samuel

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead

2016-10-15 Thread Samuel Gougeon

Le 14/10/2016 00:08, Philipp Mühlmann a écrit :

Dear Scilab users,

having a data file (*.cvs) containg following format:

HEADER-Line
dd.mm., HH:MM:SS.MS , value01, value02

.../...
Is it possible to use cvsRead in such a way to define the separator 
beeing ',' and ':' at the same time?


desired Matrix after reading the file is

M = [dd mm  HH MM SS MS value1 value2]

.
This requires also that "." to be considered as a separator to split 
dd.mm., in addition to "," and ":".

Then, the SS.MS will yield 2 separate fields.

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Creation of a library with macros located in various folders

2016-10-15 Thread Samuel Gougeon

Hello Pierre,

Scilab 6.0 will propose a new function *tbx_make*(..) that will be able 
to do exactly what you want:

https://codereview.scilab.org/#/c/18071/

By the way, it will greatly simplify compilation of modules, and will no 
longer require many cooky-files .sce like buildmacros.sce buildoc.sce 
etc etc spread everywhere in the tree of files of a module.
On the forefront, tbx_make() aims to replace & merge most of functions 
of the "modules manager" module, that are rather some atomic internals 
not really welcome as public functions:

https://help.scilab.org/docs/6.0.0/en_US/section_d8452c14ec97df3c90ea90bb4f7d53b6.html

If you use Scilab on Linux, you can already test tbx_make() in the 
nightly built release (*).


If you are working with Scilab 5, you may use the attached script. Its 
how-to is in comments.


Regards
Samuel

(*) tbx_make() merged on 2016-10-02 in the master release is still 
unavailable in the today NB sticking on the 2016-09-22 sources for Windows.


Le 12/10/2016 22:00, Pierre Vuillemin a écrit :


Hi all,

I am trying to make a function similar to genlib but which goes 
recursively through folders to find .sci files, compile them and put 
them in a given target build folder.


The idea is that I would like to be able to organize my 'macros' 
folder while still being able to generate a library. In particular, I 
would like to have that kind of folder organization :


.../...


// "genlib" a folder of macros with subfolders of macros
// The name of the folder yields the name of the main library (+"lib")
// The name of each subfolder yields the name of the related sublibrary (+"lib")
// 
// Put this script in the main macros folder and exec() it from anywhere.

path = get_absolute_file_path("buildmacros.sce")
tmp = strsplit(fileparts(path),filesep());
dirs = dir(path);
dirs = dirs.name(dirs.isdir)'
genlib(tmp($-1)+"lib", path, %t);
for d = dirs
genlib(d+"lib",path+d, %t);
end
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead

2016-10-15 Thread Samuel Gougeon

Hello

Le 14/10/2016 00:08, Philipp Mühlmann a écrit :

Dear Scilab users,

having a data file (*.cvs) containg following format:


HEADER-Line
dd.mm., HH:MM:SS.MS , value01, value02

dd = day
mm = month
 = year

HH = hour
MM = minute
SS = second
Ms = milli second

ValueXY = numerical value

Is it possible to use cvsRead in such a way to define the separator 
beeing ',' and ':' at the same time?
Beside the solution provided by Serge, if you wish to stick to 
csvRead(), have you tried using its "substitute" option, with a [":" 
","] value?
I didn't, but would be interested by results. I am wondering whether the 
substitution is done before splitting the line with the separator (then 
"substitute" will work), or after. This detail would deserve being 
documented.


Read you soon
Samuel Gougeon

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] using csvRead

2016-10-15 Thread Rafael Guerra
Thanks for the perfect neat solution in C-style.
A nice example of Columbus' egg and also of why bother making it simple when we 
made it difficult.

Kind regards,
Rafael

From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Serge Steer
Sent: Friday, October 14, 2016 8:52 PM
To: Users mailing list for Scilab 
Subject: Re: [Scilab-users] using csvRead

you can use the mfscanf function:

u=mopen("myfile","r");
h=mfscanf(1,u,"%s\n");
r=mfscanf(-1,u,"%d.%d.%d, %d:%d:%f, %f, %f\n");
mclose(u)

Serge Steer

Le 14/10/2016 à 00:08, Philipp Mühlmann a écrit :
Dear Scilab users,
having a data file (*.cvs) containg following format:

HEADER-Line
dd.mm., HH:MM:SS.MS, value01, value02

dd = day
mm = month
 = year
HH = hour
MM = minute
SS = second
Ms = milli second
ValueXY = numerical value

Is it possible to use cvsRead in such a way to define the separator beeing ',' 
and ':' at the same time?
Background:

desired Matrix after reading the file is
M = [dd mm  HH MM SS MS value1 value2]

Thank you,
Philipp

--
In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.

There we have the salad.




___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Creation of a library with macros located in various folders

2016-10-15 Thread Pierre Vuillemin

Well, after some trials and (mainly) errors,

it seems that when saving a function which name is given by the variable 
function_name,


save(function_name + ".bin", function_name)

does not work, while

 execstr("save("""function_name + ".bin""," +function_name+")")

does work.

The attached file contains a routine that goes recursively through 
folders in a given path to find the .sci files and create a library in a 
given build folder. It works as follows,


rgenlib(lib_name, src_path, target_path)

It seems to be 'working' but produces warnings due to:
- the way binary files are saved (see above), which will change in 
Scilab 6 if I am correct,
- the functions in the library being already loaded in Scilab for some 
reason.


If anyone has an insight concerning the second point, I am interested.

Best regards,

Pierre

Le 12/10/2016 à 22:00, Pierre Vuillemin a écrit :


Hi all,

I am trying to make a function similar to genlib but which goes 
recursively through folders to find .sci files, compile them and put 
them in a given target build folder.


The idea is that I would like to be able to organize my 'macros' 
folder while still being able to generate a library. In particular, I 
would like to have that kind of folder organization :


- build
 
 
- src
 - sub-folder1
 <.sci files>
 ...
 - sub-folder n
- sub sub folder 1
<.sci files>
 < .sci files>


At the moment, the function (build.sce in the attached file) goes 
through the folders contained in the initial 'src' folder, performs an 
'exec' on the .sci files that are found, and save the corresponding 
binary files in the target folder 'build' (at the same level as 
'src'). It also generates a 'names' file containing the names of the 
functions in the 'build' folder.


Finally, it creates a library with the binary files contained in the 
'build' folder.



Yet, when I try to use my functions, I get the following error:

  !--error 999
Overloaded load cannot occur in this context

So I guess that there is something wrong with the way I generate my 
library?


My binary files are generated as follows,

 function_name  = strsubst(fi,".sci","") // fi is the full 
name of the file
 names_to_write = [names_to_write;function_name] // used later 
to generate the file containing the names
 exec(file_path, -1)  // file_path is the absolute path to my 
function

 save(target_path + function_name + ".bin", function_name)

and the names file is generated as,

  names_file = target_path  + "names"
   [fd, err] = mopen(names_file,"a")
   mputl(names_to_write, fd)
   mclose(fd)


Best regards,

Pierre Vuillemin



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users




rgenlib.sci
Description: application/scilab-sci
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users