From Jean-Pierre.Dussault at USherbrooke.ca Tue Mar 1 00:42:03 2011 From: Jean-Pierre.Dussault at USherbrooke.ca (Jean-Pierre Dussault) Date: Mon, 28 Feb 2011 18:42:03 -0500 Subject: AMPL toolbox problem In-Reply-To: <4CB2BD7A.6010509@scilab.org> References: <835048110.1187875.1286482848931.JavaMail.root@zmbs3.inria.fr> <4CAEBED6.9040704@inria.fr> <1286625436.30670.209.camel@Calixte-Dell> <4CB2BD7A.6010509@scilab.org> Message-ID: <4D6C32CB.80402@USherbrooke.ca> Hi, I get error messages when trying to install the AMPL toolbox under 5.3.0. I still use 5.2.2 without taking the chance to uninstall it! Here is the error with the ATOMS version (1.2-1); strange that 1.2-1 be included with 5.3.0 when 1.3 was in the atoms for 5.2.2!!! Start AMPL Toolbox Load gateways atomsLoad: An error occurred while loading 'ampl_toolbox-1.2-1': addinter: The shared archive was not loaded: /home/dussault/import/TstScilab/scilab-5.3.0/share/scilab/contrib/ampl_toolbox/1.2-1/sci_gateway/c//libampl_c.so: Ne peut ouvrir le fichier d'objet partag?: Aucun fichier ou dossier de ce type and follows the error when trying to install 1.3-1 from http://atoms.scilab.org/toolboxes/ampl_toolbox/1.3/files/ampl_toolbox_1.3-1.bin.i686.linux.tar.gz Start AMPL Toolbox Load macros Load gateways addinter(libampl_c_path+'/libampl_c.so','libampl_c',list_functions); !--error 236 addinter: The shared archive was not loaded: /home/dussault/import/TstScilab/scilab-5.3.0/share/scilab/contrib/ampl_toolbox_1.3/sci_gateway/c//libampl_c.so: mauvaise classe ELF: ELFCLASS32 at line 19 of exec file called by : exec('loader.sce'); at line 10 of exec file called by : exec(pathconvert(root_tlbx+"/sci_gateway/loader_gateway.sce",%f)); at line 29 of exec file called by : exec(root_tlbx+'etc/'+'ampl_toolbox.start'); at line 16 of exec file called by : exec("/home/dussault/import/TstScilab/scilab-5.3.0/share/scilab/contrib/ampl_toolbox_1.3/loader.sce"); in execstr instruction called by : if exists("gcbo") then %oldgcbo = gcbo; end;gcbo = getcallbackobject(8);execstr(toolboxes(1));if exists("%oldgcbo") then gcbo = %oldgcbo; else clear gcbo; end; while executing a callback Actually, I had a version Yann Collette sent to me with an additionnal feature (computing hessians times vectors). This more or less private version does not install either under 5.3.0. Any suggestions/solutions but to stick to 5.2.2? Thx, JPD -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Tue Mar 1 00:43:48 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 01 Mar 2011 00:43:48 +0100 Subject: [Scilab-Dev] AMPL toolbox problem In-Reply-To: <4D6C32CB.80402@USherbrooke.ca> References: <835048110.1187875.1286482848931.JavaMail.root@zmbs3.inria.fr> <4CAEBED6.9040704@inria.fr> <1286625436.30670.209.camel@Calixte-Dell> <4CB2BD7A.6010509@scilab.org> <4D6C32CB.80402@USherbrooke.ca> Message-ID: <1298936628.2982.242.camel@losinj.inria.fr> Le lundi 28 f?vrier 2011 ? 18:42 -0500, Jean-Pierre Dussault a ?crit : > Hi, > > I get error messages when trying to install the AMPL toolbox under > 5.3.0. I still use 5.2.2 without taking the chance to uninstall it! [... > loaded: /home/dussault/import/TstScilab/scilab-5.3.0/share/scilab/contrib/ampl_toolbox_1.3/sci_gateway/c//libampl_c.so: mauvaise classe ELF: ELFCLASS32 Are you sure you are not trying to load a 32 bit lib on a 64 bit system ? Sylvestre From Jean-Pierre.Dussault at USherbrooke.ca Tue Mar 1 02:13:21 2011 From: Jean-Pierre.Dussault at USherbrooke.ca (Jean-Pierre Dussault) Date: Mon, 28 Feb 2011 20:13:21 -0500 Subject: [Scilab-Dev] AMPL toolbox problem In-Reply-To: <1298936628.2982.242.camel@losinj.inria.fr> References: <835048110.1187875.1286482848931.JavaMail.root@zmbs3.inria.fr> <4CAEBED6.9040704@inria.fr> <1286625436.30670.209.camel@Calixte-Dell> <4CB2BD7A.6010509@scilab.org> <4D6C32CB.80402@USherbrooke.ca> <1298936628.2982.242.camel@losinj.inria.fr> Message-ID: <4D6C4831.2010302@USherbrooke.ca> Le 2011-02-28 18:43, Sylvestre Ledru a ?crit : > Le lundi 28 f?vrier 2011 ? 18:42 -0500, Jean-Pierre Dussault a ?crit : >> Hi, >> >> I get error messages when trying to install the AMPL toolbox under >> 5.3.0. I still use 5.2.2 without taking the chance to uninstall it! > [... > > > > loaded: /home/dussault/import/TstScilab/scilab-5.3.0/share/scilab/contrib/ampl_toolbox_1.3/sci_gateway/c//libampl_c.so: mauvaise classe ELF: ELFCLASS32 > > Are you sure you are not trying to load a 32 bit lib on a 64 bit > system ? No, I am not sure! I just downloaded ampl_toolbox_1.3 (no 32/64 bits option available, see below) and triggered "loader.sce" from it. I tried both (beginning with builder.sce for the source version). Files (2) [570.88 Ko] ampl-1.3.zip the source of the ampl toolbox Upload date : 2009-11-09 15:55:22 MD5 : 7f051aa9baadf0ba9655e8f65f709c45 SHA1 : 46c047d028af1b06f3b7fa1bf1fb0920e5e37869 Downloads : 112 File list Tree [565.54 Ko] ampl_toolbox_1.3-1.bin.i686.linux.tar.gz Linux version (i686) Automatically generated by the atoms compilation chain JPD -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: media-eject_inverse.png Type: image/png Size: 3976 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: media-eject.png Type: image/png Size: 987 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: document-save.png Type: image/png Size: 1971 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: package-x-generic.png Type: image/png Size: 1067 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: format-justify-left.png Type: image/png Size: 324 bytes Desc: not available URL: From communication at scilab.org Thu Mar 3 13:21:55 2011 From: communication at scilab.org (Scilab Communication) Date: Thu, 03 Mar 2011 13:21:55 +0100 Subject: Release of Scilab 5.3.1 Message-ID: <4D6F87E3.1010508@scilab.org> Dear Scilab developers, The Scilab R&D Team is pleased to announce the release of Scilab 5.3.1. Download and information can be found at: http://www.scilab.org/en/products/scilab/download Sources for this version: http://www.scilab.org/en/communities/developer_zone/scilab_versions/stable Best Regards ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France From Jean-Pierre.Dussault at USherbrooke.ca Thu Mar 3 21:10:35 2011 From: Jean-Pierre.Dussault at USherbrooke.ca (Jean-Pierre Dussault) Date: Thu, 03 Mar 2011 15:10:35 -0500 Subject: [Scilab-Dev] AMPL toolbox problem In-Reply-To: <4D6C32CB.80402@USherbrooke.ca> References: <835048110.1187875.1286482848931.JavaMail.root@zmbs3.inria.fr> <4CAEBED6.9040704@inria.fr> <1286625436.30670.209.camel@Calixte-Dell> <4CB2BD7A.6010509@scilab.org> <4D6C32CB.80402@USherbrooke.ca> Message-ID: <4D6FF5BB.2060401@USherbrooke.ca> Le 2011-02-28 18:42, Jean-Pierre Dussault a ?crit : > Hi, > > I get error messages when trying to install the AMPL toolbox under > 5.3.0. I still use 5.2.2 without taking the chance to uninstall it! > > Here is the error with the ATOMS version (1.2-1); strange that 1.2-1 > be included with 5.3.0 when 1.3 was in the atoms for 5.2.2!!! Hi, I just tried ampl 1.2-1 under the new 5.3.1, and still get the same error message. I still find it strange not to have ampl 1.3 in the new distro. Start AMPL Toolbox Load gateways atomsLoad: An error occurred while loading 'ampl_toolbox-1.2-1': addinter: The shared archive was not loaded: /home/dussault/Installation/scilab-5.3.1/share/scilab/contrib/ampl_toolbox/1.2-1/sci_gateway/c//libampl_c.so: Ne peut ouvrir le fichier d'objet partag?: Aucun fichier ou dossier de ce type I confirm that there is NO .so file in the path scilab-5.3.1/share/scilab/contrib/ampl_toolbox/1.2-1/sci_gateway/c Thx, JPD -------------- next part -------------- An HTML attachment was scrubbed... URL: From mongkol38 at gmail.com Mon Mar 7 15:07:23 2011 From: mongkol38 at gmail.com (Mongkol Rodjan) Date: Mon, 7 Mar 2011 21:07:23 +0700 Subject: please help me scilab with php Message-ID: hi i use ubuntu 10.0.4-desktop 64 bits, and install apache2 , install php5, install scilab after i create file gra.sce --> x = 2:1:10; y = 5*x^2+4; plot(x,y); xs2gif(0,'/var/www/test.gif'); exit; and file log.sce --> log2(100); savematfile('001.txt','ans'); exit; at terminal on ubuntu i use command scilab -nwni -nb -f log.sce that ok can create file 001.txt and use command scilab -nw -nb -f gra.sce that ok can create file test.gif so i create php file like --> result exec('HOME=/var/www; export HOME; scilab -nwni -nb -f log.sce', $output); it's work can create file 001.txt BUT !!!! exec('HOME=/var/www; export HOME; scilab -nw -nb -f gra.sce',$output); it not create test.gif please help me how to do for --> exec('HOME=/var/www; export HOME; scilab -nw -nb -f gra.sce',$output); to work success... thank a lot sorry if my eng not good... :D -- MR.MONGKOL RODJAN Network Administrator Programmer & System analysis Web : http://cs.npru.ac.th/~mongkol E-Mail : mongkol38 at gmail.com Mobile : 08-5193-1997 -------------- next part -------------- An HTML attachment was scrubbed... URL: From leratojeffrey.mohapi at gmail.com Mon Mar 7 15:16:14 2011 From: leratojeffrey.mohapi at gmail.com (Lerato Jeffrey Mohapi) Date: Mon, 7 Mar 2011 09:16:14 -0500 Subject: Call a Java object from Scilab Message-ID: Hi Everyone, Please help me. I have been trying to find help with this problem for so long now and I am beginning to give up on Scilab 5.3 now. I really liked its functionality but now i dont think I am getting enough support as a beginner to Scilab/Xcos. I need to provide a modelling environment with support for HDL code generation and so far the most famous are both Scilab and Ptolemy II but unfortunately no HDL Code generation. I can add my own HDL Code generation so i thought of many way to do it in Ptolemy II but really have no idea how i can do it in Scilab-5.3. I have enough experience with Ptolemy II and know how to add new Actors to it but With Scilab I am very new. Please Guys, help out. I gotta make a good decision before I continue. I have a VHDL Code generator written in Java and would love to add to Scilab/Xcos. Anyway, I thought of many ways to add code generation to Scilab, and the best way I could think of it was to add my new java Objects to Scilab, I cant find enough documentation for this except for this URL: http://wiki.scilab.org/Call_a_Java_object_from_Scilab. I dont understand where it says "Create the gateway and update all files to add the new Scilab function (modules/xxx/sci_gateway/gw_xxx.xml modules/xxx/sci_gateway/c/gw_xxx.c modules/xxx/includes/gw_xxx.h) " and next it states that "Write your gateway code. Check the number of input argument, their type and size.". What should be in the gateway code? Where can I find an example of this procedure to Call a java object from Scilab? Is there a better way to add HDL code generation to Scilab except for Scicos-HDL which seems not to have support in Xcos/Scilab-5.3? And please if you no one can help me, suggest ways to help me find help. Thanx Guys. Regards. Lerato From communication at scilab.org Wed Mar 9 14:45:05 2011 From: communication at scilab.org (Scilab Communication) Date: Wed, 09 Mar 2011 14:45:05 +0100 Subject: Scilab live Webcast on National Instruments Website, March 30 at 10 AM Message-ID: <4D778461.7040102@scilab.org> Dear all, Scilab is going to participate to National Instruments live Webcast on Scilab and LabVIEW to Scilab Gateway. Led by a National Instruments engineer and presented by a Scilab Consortium engineer, this WebCast in French lasts twenty minutes and allows you to discuss interactively through live chat. Follow us live on Wednesday 30 March at 10 A.M. For those who are interested, free registration on: http://www.nifrance.fr/video_tchat/prototypage/ Best Regards ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France From leratojeffrey.mohapi at gmail.com Thu Mar 10 15:39:25 2011 From: leratojeffrey.mohapi at gmail.com (Lerato Jeffrey Mohapi) Date: Thu, 10 Mar 2011 09:39:25 -0500 Subject: Compiling Scilab in Scientific Linux 6 Message-ID: Hi, I am using SL 6 and can't successfully compile scilab 5.3.1. After running the Configure script successfully, i ran make and get the following error: ~/scilab-5.3.1/modules/output_stream/.libs/libscioutput_stream.so: undefined reference to `floor_' ~/scilab-5.3.1/modules/polynomials/.libs/libscipolynomials.so: undefined reference to `huge_' ~/scilab-5.3.1/modules/polynomials/.libs/libscipolynomials.so: undefined reference to `tiny_' ~/scilab-5.3.1/modules/polynomials/.libs/libscipolynomials.so: undefined reference to `radix_' collect2: ld returned 1 exit status make[1]: *** [scilab-bin] Error I am new to Scilab and I need to use the source package not the binary one. Please help me remove this error. Obviously it had something to do with math library and I googled and found that I had to add -lm in the Makefile which was already there. i cant figure out what wrong now and really need your help. Best Regards. -- Lerato J Mohapi iThemba LABS - EIT Student Somerset West Western Cape South Africa Cell: 079 181 7501 From leratojeffrey.mohapi at gmail.com Thu Mar 10 15:42:05 2011 From: leratojeffrey.mohapi at gmail.com (Lerato) Date: Thu, 10 Mar 2011 06:42:05 -0800 (PST) Subject: Error Compiling Scilab from Source on Scientific Linux 6 Message-ID: <92e5cfc5-05f1-4128-b868-87c9f70bf429@n18g2000vbq.googlegroups.com> Hi, I am using SL 6 and can't successfully compile scilab 5.3.1. After running the Configure script successfully, i ran make and get the following error: ~/scilab-5.3.1/modules/output_stream/.libs/libscioutput_stream.so: undefined reference to `floor_' ~/scilab-5.3.1/modules/polynomials/.libs/libscipolynomials.so: undefined reference to `huge_' ~/scilab-5.3.1/modules/polynomials/.libs/libscipolynomials.so: undefined reference to `tiny_' ~/scilab-5.3.1/modules/polynomials/.libs/libscipolynomials.so: undefined reference to `radix_' collect2: ld returned 1 exit status make[1]: *** [scilab-bin] Error I am new to Scilab and I need to use the source package not the binary one. Please help me remove this error. Obviously it had something to do with math library and I googled and found that I had to add -lm in the Makefile which was already there. i cant figure out what wrong now and really need your help. Best Regards. From sylvestre.ledru at scilab.org Fri Mar 11 00:36:06 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 11 Mar 2011 00:36:06 +0100 Subject: [Scilab-Dev] Error Compiling Scilab from Source on Scientific Linux 6 In-Reply-To: <92e5cfc5-05f1-4128-b868-87c9f70bf429@n18g2000vbq.googlegroups.com> References: <92e5cfc5-05f1-4128-b868-87c9f70bf429@n18g2000vbq.googlegroups.com> Message-ID: <1299800166.3024.2193.camel@losinj.inria.fr> Le jeudi 10 mars 2011 ? 06:42 -0800, Lerato a ?crit : > Hi, > > I am using SL 6 and can't successfully compile scilab 5.3.1. After > running the Configure script successfully, i ran make and get the > following error: > > ~/scilab-5.3.1/modules/output_stream/.libs/libscioutput_stream.so: > undefined reference to `floor_' > ~/scilab-5.3.1/modules/polynomials/.libs/libscipolynomials.so: > undefined reference to `huge_' > ~/scilab-5.3.1/modules/polynomials/.libs/libscipolynomials.so: > undefined reference to `tiny_' > ~/scilab-5.3.1/modules/polynomials/.libs/libscipolynomials.so: > undefined reference to `radix_' > collect2: ld returned 1 exit status > make[1]: *** [scilab-bin] Error > > I am new to Scilab and I need to use the source package not the binary > one. Please help me remove this error. Obviously it had something to > do with math library and I googled and found that I had to add -lm in > the Makefile which was already there. i cant figure out what wrong now > and really need your help. It is because you are using g77. Please switch to gfortran. See: http://bugzilla.scilab.org/show_bug.cgi?id=8934 Sylvestre From leratojeffrey.mohapi at gmail.com Fri Mar 11 09:02:24 2011 From: leratojeffrey.mohapi at gmail.com (Lerato Jeffrey Mohapi) Date: Fri, 11 Mar 2011 03:02:24 -0500 Subject: [Scilab-Dev] Error Compiling Scilab from Source on Scientific Linux 6 In-Reply-To: <1299800166.3024.2193.camel@losinj.inria.fr> References: <92e5cfc5-05f1-4128-b868-87c9f70bf429@n18g2000vbq.googlegroups.com> <1299800166.3024.2193.camel@losinj.inria.fr> Message-ID: Hi, Thank you so much for your help. It worked. Best regards. On Thu, Mar 10, 2011 at 6:36 PM, Sylvestre Ledru wrote: > Le jeudi 10 mars 2011 ? 06:42 -0800, Lerato a ?crit : >> Hi, >> >> I am using SL 6 and can't successfully compile scilab 5.3.1. After >> running the Configure script successfully, i ran make and get the >> following error: >> >> ~/scilab-5.3.1/modules/output_stream/.libs/libscioutput_stream.so: >> undefined reference to `floor_' >> ~/scilab-5.3.1/modules/polynomials/.libs/libscipolynomials.so: >> undefined reference to `huge_' >> ~/scilab-5.3.1/modules/polynomials/.libs/libscipolynomials.so: >> undefined reference to `tiny_' >> ~/scilab-5.3.1/modules/polynomials/.libs/libscipolynomials.so: >> undefined reference to `radix_' >> collect2: ld returned 1 exit status >> make[1]: *** [scilab-bin] Error >> >> I am new to Scilab and I need to use the source package not the binary >> one. Please help me remove this error. Obviously it had something to >> do with math library and I googled and found that I had to add -lm in >> the Makefile which was already there. i cant figure out what wrong now >> and really need your help. > It is because you are using g77. Please switch to gfortran. > > See: > http://bugzilla.scilab.org/show_bug.cgi?id=8934 > > Sylvestre > > > -- Lerato J Mohapi iThemba LABS - EIT Student Somerset West Cell: 079 181 7501 From sunil.nandihalli at gmail.com Sat Mar 12 04:21:33 2011 From: sunil.nandihalli at gmail.com (Sunil S Nandihalli) Date: Sat, 12 Mar 2011 08:51:33 +0530 Subject: would giws generate different c++ files on different oses... ? Message-ID: Hello , I was wondering if giws generated different c++ files on different oses.. ? can I just use the c++ wrappers generated for one os across all platforms? Thanks, Sunil. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Sat Mar 12 10:34:38 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 12 Mar 2011 10:34:38 +0100 Subject: [Scilab-Dev] would giws generate different c++ files on different oses... ? In-Reply-To: References: Message-ID: <1299922478.2971.4897.camel@losinj.inria.fr> Le samedi 12 mars 2011 ? 08:51 +0530, Sunil S Nandihalli a ?crit : > Hello , > I was wondering if giws generated different c++ files on different > oses.. ? can I just use the c++ wrappers generated for one os across > all platforms? Thanks, Code generated by GIWS is indeed cross platform. We are building it on a daily bases under Windows, GNU/Linux & Mac OS X. We know it is working fine under BSD & Solaris. It compiles fine with gcc, clang, visual studio, Intel compiler and Sun compilers... Sylvestre From michael.baudin at scilab.org Tue Mar 15 15:31:08 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Tue, 15 Mar 2011 15:31:08 +0100 Subject: SEP: csv read write functions Message-ID: <4D7F782C.8000105@scilab.org> Hello, This SEP describes thedefinition and the improvement of CSV import and export functions in Scilab. This is a work with Allan Cornet, who is the leader of this project. Best regards, Micha?l Baudin -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: SEP_csvreadwrite.odt Type: application/vnd.oasis.opendocument.text Size: 21884 bytes Desc: not available URL: From Serge.Steer at scilab.org Tue Mar 15 16:53:59 2011 From: Serge.Steer at scilab.org (Serge Steer) Date: Tue, 15 Mar 2011 16:53:59 +0100 Subject: [Scilab-Dev] SEP: csv read write functions In-Reply-To: <4D7F782C.8000105@scilab.org> References: <4D7F782C.8000105@scilab.org> Message-ID: <4D7F8B97.8010604@scilab.org> Le 15/03/2011 15:31, Micha?l Baudin a ?crit : > Hello, > > This SEP describes the definition and the improvement of CSV import > and export functions in Scilab. > > This is a work with Allan Cornet, who is the leader of this project. > > Best regards, > > Micha?l Baudin > > > -- > Micha?l Baudin > Ing?nieur de d?veloppement > michael.baudin at scilab.org > ------------------------- > Consortium Scilab - Digiteo > Domaine de Voluceau - Rocquencourt > B.P. 105 - 78153 Le Chesnay Cedex > Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 > > J'ai un petit souci avec ce SEP. le format csv ?tait a priori pr?vus pour les ?changes avec excel d'o? l'utilisation de la virgule au lieu du point d?cimal et par cons?quent de tab comme s?parateur.... Il me semble que cette spec permet de gerer ces deux choses, mais ce n'est pas dit explicitement, de m?me que le d?faut n'est pas pr?cis?. Pour la compatilibilit? ascendante il serait bon que le d?faut corresponde a la situation actuelle... Par ailleurs je ne comprend pas pourquoi la fonction csv_stringtodouble est prefix?e par csv, si je comprend bien elle n'a rien a voir avec le format csv. Pourquoi ne pas l'appeler stringtodouble ou tout simplement completer la semantique de double, int8,int16,int32,....) (sachant que string fait l'inverse) Serge Serge -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Wed Mar 16 09:48:07 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Wed, 16 Mar 2011 09:48:07 +0100 Subject: [Scilab-Dev] SEP: csv read write functions In-Reply-To: <4D7F8B97.8010604@scilab.org> References: <4D7F782C.8000105@scilab.org> <4D7F8B97.8010604@scilab.org> Message-ID: <4D807947.9090401@scilab.org> Hello, Thank you for providing your interesting comments. Do not forget that this is an English mailing list. The idea that you suggest on csv_stringtodouble is interesting. We did not think about extending the current double function. The idea of Allan on this topic was to mimic the str2double function in Matlab: http://www.mathworks.com/help/techdoc/ref/str2double.html The main issue here is that the str2double function is extremely flexible: the range of complex doubles strings that Matlab can process is wide. It is rather difficult to entirely reproduce this. For example, the imaginary number i can be before or after the imaginary part, e.g. '123 + 45i' or '45i+123' or '45j+123' or 'j+123' or '-j-123' or '-45*j-123' or '-45e+12*j-123e-3', etc... Octave has troubles to reproduce these features. Part of the problem is that the Matlab function str2double makes use of the sscanf function, which can manage flexible formats. The compatibility with Excel and the backward compatibility were our primary concern: be sure that we are well aware of these issues and tried to solve it as much as possible. I think that the currrent proposal is quite consistent and here is why. Notice the bug #8654 : In write_csv, the default separator and decimal mark are non-standard. There are three problems: * The separator is the tab, while the Comma Separated Value data file format is clear about the fact that the separator is the comma. * The decimal mark is the comma ",", while the standard is the dot ".". * Such a file will not be read correctly by the default settings of read_csv. I emphasize that the decimal point is the comma "," only in France: in most other countries (including U.S.), the decimal point is the dot ".". In Open Office for example, we can customize this with Tools - Options - Language Settings - Languages. In the proposed csv_read function, the decimal point is also customizable. A valid suggestion, though, would be to customize the decimal point depending on the locale. But this is beyond my technical knowledge. May be Sylvestre could improve this. I emphasize that the columns of a Comma Separated Value data files are separated by commas ",", as suggested by the name of this "format". If the separator was the Tab, this would be called a "TAB Separated Value". There is a link between the separator and the decimal point in the current function. The reason why the TAB was chosen in the current read_csv function, is because the comma "," was chosen as the decimal point. If the comma was also chosen to be the separator, we could not read the file anymore, because of the confusion with the decimal point. This is the reason why the current default for the separator is the TAB. The backward compatibility is a real concern. * The backward compatibility can be broken, since the current state is inconsistent. What is the point in maintaining the current state, where a file written by write_csv cannot be read by read_csv ? * The "forward" compatibility is improved: the comma is the default separator in Matlab and Octave. * The backward compatibility will probably be broken, by creating new functions called "csv_read/csv_write", while the current functions are "read_csv/write_csv". The current functions "read_csv/write_csv" will be tagged as obsolete, and then removed in a later release. Best regards, Micha?l Baudin Le 15/03/2011 16:53, Serge Steer a ?crit : > Le 15/03/2011 15:31, Micha?l Baudin a ?crit : >> Hello, >> >> This SEP describes thedefinition and the improvement of CSV import >> and export functions in Scilab. >> >> This is a work with Allan Cornet, who is the leader of this project. >> >> Best regards, >> >> Micha?l Baudin >> >> >> -- >> Micha?l Baudin >> Ing?nieur de d?veloppement >> michael.baudin at scilab.org >> ------------------------- >> Consortium Scilab - Digiteo >> Domaine de Voluceau - Rocquencourt >> B.P. 105 - 78153 Le Chesnay Cedex >> Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 >> >> > J'ai un petit souci avec ce SEP. le format csv ?tait a priori pr?vus > pour les ?changes avec excel d'o? l'utilisation de la virgule au lieu > du point d?cimal et par cons?quent de tab comme s?parateur.... Il me > semble que cette spec permet de gerer ces deux choses, mais ce n'est > pas dit explicitement, de m?me que le d?faut n'est pas pr?cis?. Pour > la compatilibilit? ascendante il serait bon que le d?faut corresponde > a la situation actuelle... > > Par ailleurs je ne comprend pas pourquoi la fonction > csv_stringtodouble est prefix?e par csv, si je comprend bien elle n'a > rien a voir avec le format csv. Pourquoi ne pas l'appeler > stringtodouble ou tout simplement completer la semantique de double, > int8,int16,int32,....) (sachant que string fait l'inverse) > > Serge > Serge > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Wed Mar 16 10:25:10 2011 From: Serge.Steer at inria.fr (Serge Steer) Date: Wed, 16 Mar 2011 10:25:10 +0100 Subject: [Scilab-Dev] SEP: csv read write functions In-Reply-To: <4D807947.9090401@scilab.org> References: <4D7F782C.8000105@scilab.org> <4D7F8B97.8010604@scilab.org> <4D807947.9090401@scilab.org> Message-ID: <4D8081F6.1050800@inria.fr> Le 16/03/2011 09:48, Micha?l Baudin a ?crit : > Hello, > > Thank you for providing your interesting comments. > > Do not forget that this is an English mailing list. > > The idea that you suggest on csv_stringtodouble is interesting. We did > not think about extending the current double function. The idea of > Allan on this topic was to mimic the str2double function in Matlab: > > http://www.mathworks.com/help/techdoc/ref/str2double.html > > The main issue here is that the str2double function is extremely > flexible: the range of complex doubles strings that Matlab can process > is wide. It is rather difficult to entirely reproduce this. For > example, the imaginary number i can be before or after the imaginary > part, e.g. '123 + 45i' or '45i+123' or '45j+123' or 'j+123' or > '-j-123' or '-45*j-123' or '-45e+12*j-123e-3', etc... Octave has > troubles to reproduce these features. Part of the problem is that the > Matlab function str2double makes use of the sscanf function, which can > manage flexible formats. probably Matlab does something like cvstr (parse an expression and evaluate it) . It is more flexible but less efficient. If you are looking for efficiency you should restrict to real or integer numbers. The Matlab str2double may be emulated using cvstr. the "45j" or "45i" feature is the most difficult to handle, but it can be solved by a preprocessing that changes the regular expressions [0-9]i and [0-9]j to add a *. > > The compatibility with Excel and the backward compatibility were our > primary concern: be sure that we are well aware of these issues and > tried to solve it as much as possible. I think that the currrent > proposal is quite consistent and here is why. > > Notice the bug #8654 : In write_csv, the default separator and decimal > mark are non-standard. There are three problems: > * The separator is the tab, while the Comma Separated Value data file > format is clear about the fact that the separator is the comma. > * The decimal mark is the comma ",", while the standard is the dot ".". > * Such a file will not be read correctly by the default settings of > read_csv. > > I emphasize that the decimal point is the comma "," only in France: > in most other countries (including U.S.), the decimal point is the dot > ".". In Open Office for example, we can customize this with Tools - > Options - Language Settings - Languages. In the proposed csv_read > function, the decimal point is also customizable. A valid suggestion, > though, would be to customize the decimal point depending on the > locale. But this is beyond my technical knowledge. May be Sylvestre > could improve this. > I am not sure that relying on the locale should be a good solution. One may want to read data generated under an other locale It seem better to make that customisable throught parameter as you proposed. > I emphasize that the columns of a Comma Separated Value data files are > separated by commas ",", as suggested by the name of this "format". If > the separator was the Tab, this would be called a "TAB Separated Value". > > There is a link between the separator and the decimal point in the > current function. The reason why the TAB was chosen in the current > read_csv function, is because the comma "," was chosen as the decimal > point. If the comma was also chosen to be the separator, we could not > read the file anymore, because of the confusion with the decimal > point. This is the reason why the current default for the separator is > the TAB. > > The backward compatibility is a real concern. > * The backward compatibility can be broken, since the current state > is inconsistent. What is the point in maintaining the current state, > where a file written by write_csv cannot be read by read_csv ? > * The "forward" compatibility is improved: the comma is the default > separator in Matlab and Octave. > * The backward compatibility will probably be broken, by creating new > functions called "csv_read/csv_write", while the current functions are > "read_csv/write_csv". The current functions "read_csv/write_csv" will > be tagged as obsolete, and then removed in a later release. > Ok! I did not realize that you proposed a name change. Good solution! Serge Steer > Best regards, > > Micha?l Baudin > > > Le 15/03/2011 16:53, Serge Steer a ?crit : >> Le 15/03/2011 15:31, Micha?l Baudin a ?crit : >>> Hello, >>> >>> This SEP describes the definition and the improvement of CSV import >>> and export functions in Scilab. >>> >>> This is a work with Allan Cornet, who is the leader of this project. >>> >>> Best regards, >>> >>> Micha?l Baudin >>> >>> >>> -- >>> Micha?l Baudin >>> Ing?nieur de d?veloppement >>> michael.baudin at scilab.org >>> ------------------------- >>> Consortium Scilab - Digiteo >>> Domaine de Voluceau - Rocquencourt >>> B.P. 105 - 78153 Le Chesnay Cedex >>> Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 >>> >>> >> J'ai un petit souci avec ce SEP. le format csv ?tait a priori pr?vus >> pour les ?changes avec excel d'o? l'utilisation de la virgule au lieu >> du point d?cimal et par cons?quent de tab comme s?parateur.... Il me >> semble que cette spec permet de gerer ces deux choses, mais ce n'est >> pas dit explicitement, de m?me que le d?faut n'est pas pr?cis?. Pour >> la compatilibilit? ascendante il serait bon que le d?faut corresponde >> a la situation actuelle... >> >> Par ailleurs je ne comprend pas pourquoi la fonction >> csv_stringtodouble est prefix?e par csv, si je comprend bien elle >> n'a rien a voir avec le format csv. Pourquoi ne pas l'appeler >> stringtodouble ou tout simplement completer la semantique de double, >> int8,int16,int32,....) (sachant que string fait l'inverse) >> >> Serge >> Serge >> > > > -- > Micha?l Baudin > Ing?nieur de d?veloppement > michael.baudin at scilab.org > ------------------------- > Consortium Scilab - Digiteo > Domaine de Voluceau - Rocquencourt > B.P. 105 - 78153 Le Chesnay Cedex > Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Mar 16 10:49:04 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 16 Mar 2011 10:49:04 +0100 Subject: SEP: Add a new argument quality to function xs2jpg Message-ID: <1300268945.3160.542.camel@losinj.inria.fr> Hello, Here is the SEP which introduces the new argument quality to the function xs2jpg. Sylvestre -------------- next part -------------- A non-text attachment was scrubbed... Name: SEP_52_jpg_quality.odt Type: application/vnd.oasis.opendocument.text Size: 18786 bytes Desc: not available URL: From michael.baudin at scilab.org Fri Mar 18 14:39:14 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Fri, 18 Mar 2011 14:39:14 +0100 Subject: [Scilab-Dev] SEP: Add a new argument quality to function xs2jpg In-Reply-To: <1300268945.3160.542.camel@losinj.inria.fr> References: <1300268945.3160.542.camel@losinj.inria.fr> Message-ID: <4D836082.5080801@scilab.org> Hello, This will be an appreciated improvement! You state that "By default, the quality will be 0.75.".What quality value corresponds to the current value in Scilab 5.3.1 ? Best regards, Micha?l Baudin Le 16/03/2011 10:49, Sylvestre Ledru a ?crit : > Hello, > > Here is the SEP which introduces the new argument quality to the > function xs2jpg. > > Sylvestre > -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.baudin at scilab.org Fri Mar 18 14:43:46 2011 From: michael.baudin at scilab.org (=?ISO-8859-1?Q?Micha=EBl_Baudin?=) Date: Fri, 18 Mar 2011 14:43:46 +0100 Subject: [Scilab-Dev] SEP: csv read write functions In-Reply-To: <4D8081F6.1050800@inria.fr> References: <4D7F782C.8000105@scilab.org> <4D7F8B97.8010604@scilab.org> <4D807947.9090401@scilab.org> <4D8081F6.1050800@inria.fr> Message-ID: <4D836192.907@scilab.org> Le 16/03/2011 10:25, Serge Steer a ?crit : > probably Matlab does something like cvstr (parse an expression and > evaluate it) . It is more flexible but less efficient. If you are > looking for efficiency you should restrict to real or integer numbers. > The Matlab str2double may be emulated using cvstr. the "45j" or "45i" > feature is the most difficult to handle, but it can be solved by a > preprocessing that changes the regular expressions [0-9]i and [0-9]j > to add a *. You probably mean "evstr". As far as I understand Matlab's function, no. It makes repeated calls to the sscanf function, until something works. The process stops when one scan works. If no scan works, this is an error. This is probably not as fast as possible. I do not know if using regexps to do this is easy within a compiled source code. I will suggest Allan to see this topic. Regards, Micha?l Baudin -- Micha?l Baudin Ing?nieur de d?veloppement michael.baudin at scilab.org ------------------------- Consortium Scilab - Digiteo Domaine de Voluceau - Rocquencourt B.P. 105 - 78153 Le Chesnay Cedex Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 From calixte at contrib.scilab.org Fri Mar 18 14:43:57 2011 From: calixte at contrib.scilab.org (Calixte Denizet) Date: Fri, 18 Mar 2011 14:43:57 +0100 Subject: [Scilab-Dev] SEP: Add a new argument quality to function xs2jpg In-Reply-To: <4D836082.5080801@scilab.org> References: <1300268945.3160.542.camel@losinj.inria.fr> <4D836082.5080801@scilab.org> Message-ID: <1300455837.31399.153.camel@Calixte-Dell> Le vendredi 18 mars 2011 ? 14:39 +0100, Micha?l Baudin a ?crit : > Hello, > Hi Michael, > This will be an appreciated improvement! > > You state that "By default, the quality will be 0.75.". What quality > value corresponds to the current value in Scilab 5.3.1 ? > The current value in 5.3.1 is 0.75. Cheers, Calixte > Best regards, > > Micha?l Baudin > > > Le 16/03/2011 10:49, Sylvestre Ledru a ?crit : > > Hello, > > > > Here is the SEP which introduces the new argument quality to the > > function xs2jpg. > > > > Sylvestre > > > > > -- > Micha?l Baudin > Ing?nieur de d?veloppement > michael.baudin at scilab.org > ------------------------- > Consortium Scilab - Digiteo > Domaine de Voluceau - Rocquencourt > B.P. 105 - 78153 Le Chesnay Cedex > Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94 > From sylvestre.ledru at scilab.org Sun Mar 20 12:22:49 2011 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sun, 20 Mar 2011 12:22:49 +0100 Subject: GSoC 2011 Message-ID: <1300620169.2957.5988.camel@losinj.inria.fr> Hello, Good news everyone, Scilab will be involved one more time to the Google Summer of Code. The student can get in touch with the Scilab team about the various projects and applications start from March 28 to April 8. The list of ideas is available here: http://wiki.scilab.org/Ideas_of_development_for_Scilab Don't hesitate to contact me if you see anything missing here, Sylvestre From simon.gareste at scilab.org Mon Mar 21 11:30:20 2011 From: simon.gareste at scilab.org (Simon GARESTE) Date: Mon, 21 Mar 2011 11:30:20 +0100 Subject: Bugzilla-4.0 Message-ID: <4D8728BC.50408@scilab.org> Hi all, After a long time without touching it, we finally moved from bugzilla-3.0.3 to bugzilla-4.0. This upgrade enables features like automatic search while submitting a bug (to help preventing duplicated bugs) and some interface updates. For more information about this version of bugzilla, please check their website . Also, we decided to ease the way of reporting bugs, deleting the three-steps way to report a bug for a summary/detail way. Older bugs has been transformed to match this configuration (three steps regrouped in one block). In case of trouble with the display, try forcing to refresh the cache. Have a nice day using Scilab! Simon -------------- next part -------------- An HTML attachment was scrubbed... URL: From communication at scilab.org Tue Mar 29 10:06:47 2011 From: communication at scilab.org (Scilab Communication) Date: Tue, 29 Mar 2011 10:06:47 +0200 Subject: SAVE THE DATE - ScilabTEC 2011 Message-ID: <4D919317.2030104@scilab.org> Dear all, *ScilabTEC 2011 is in 3 months. Save the date for Wednesday 29th June !* ScilabTEC 2001 is organized during Teratec Forum and will take place at the ?cole Polytechnique in Palaiseau. Complete program to come shortly. Best Regards ----------------------------------------------- The Scilab Consortium R&D Team ----------------------------------------------- Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex - France -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: scilabtec_11_eng.png Type: image/png Size: 82525 bytes Desc: not available URL: