Re: [Scilab-users] scilab mkdir and UNC path support

2018-10-29 Thread Samuel Gougeon

Le 29/10/2018 à 16:17, Antoine Monmayrant a écrit :

Hi all,

The lack of support for UNC path in scilab is a real issue in our lab (UNC path 
are Windows paths that looks like \\server\dir1\subdir1\).
In particular it breaks atomsInstall for all the Windows users here as our home 
dir is mounted as a UNC path: \\servername\username.
I found the main issue (I think) in mkdir() at line 88:
 subdirs = strsplit(NewDirectory, ["/" "\"]);
obviously, splitting the  path to the new directory is not going to give you something 
nice with a UNC path that starts with "\\".
I have an idea to workaround this limitation, but there is still something I don't get in 
the logic of mkdir(): this splitting is associated with "bAddFirstDirSep", a 
variable that tries to detect something wrong with the first directory separator.
Could anyone more knowledgeable than me explain why it is there and what is is 
doing?
I would not want to reintroduce some bug with my modified version...


On windows, we have
--> pathconvert("c:\",%f,%t,"u")
 ans  =
 /cygdrive/c

I don't know what we might do with this. There is no cygdrive on my 
computer (AFAIK :/)


Conversely, could you try something like
--> pathconvert(your_slashslash_path, %f, %t, "w")

Samuel

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


Re: [Scilab-users] ?==?utf-8?q? Unable to update ATOMS packages - Scilab 6.0.1

2018-10-29 Thread Antoine Monmayrant
Hello,

Here is what I did in Ubuntu 18.10 to get scilab 6.0 nightly build to work (it 
also suffers from the missing libgfortran): 
- download the last nighlty build of the 6.0 branch,
- untar it,
- sudo apt-get install libgfortran3,
- run scilab from the terminal,
- success!

Could you use the same approach to solve your problems?

Antoine
 
 
Le Mardi, Octobre 23, 2018 22:39 CEST, Pndsc  a écrit: 
 
> Update for 23/10/18.
> 
> After reading up on amd drivers it looked like my remaining issue was my old
> AMD graphics card, an R7 240 from circa 2014. I removed this card, swapped
> my 1050Ti card from my other desktop machine and booted to a black screen so
> required a fresh install of Kubuntu 18.04.
> 
> Installing Scilab from repositories gave me previously encountered errors to
> do with Java. I followed and implemented the fixes from:
> 
> https://askubuntu.com/questions/1029163/how-to-get-scilab-6-0-1-working-on-ubuntu-18-04-lts/1029164
> 
> for reverting to OpenJDK 8, again.
> 
> Scilab now runs, Xcos graphs will display (so apparently an nvidia card
> fixes that issue) but I am left with my original issue with ATOMS not
> updating and saying: 
> 
> No ATOMS module is available. Please, check your Internet connection or make
> sure that your OS is compatible with ATOMS
> 
> --> atomsSystemUpdate
> Scanning repository http://atoms.scilab.org/6.0 ... Done
> 
> at line   265 of function atomsDESCRIPTIONget (
> /usr/share/scilab/modules/atoms/macros/atoms_internals/atomsDESCRIPTIONget.sci
> line 284 )
> at line16 of function atomsSystemUpdate   (
> /usr/share/scilab/modules/atoms/macros/atomsSystemUpdate.sci line 33 )
> 
> atomsDESCRIPTIONget: save
> ('/home/chris/.Scilab/scilab-6.0.1/.atoms/packages') has failed.
> 
> Alternatives:
> 
> Downloading nightlies or the standard 6.0.1 from the website manually leads
> me back on the libgfortran merry-go-round, fixed again with installing gcc-7
> g++-7 and again resulting in the X11glxdrawablefactory stuff.
> 
> I've done the export mesa to version 3.0 bit. 
> 
> I cant imagine what piece of voodoo I'm missing that managed to fix my
> problem last time, I'm pretty sure I've gone through this thread and
> N0rberts askubuntu responses and repeated just about all of it.
> 
> 
> 
> --
> Sent from: 
> http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> ___
> 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] uicontrol TABLE

2018-10-29 Thread Izabela Wójcik-Grząba
I am not getting any error message. I tried also not to close the 
window. How should it work? It's unclear for me.





W dniu 29.10.2018 16:02, Samuel Gougeon napisał(a):

Le 29/10/2018 à 15:46, Izabela Wójcik-Grząba a écrit :
I have 6.01 version and changing values doesn't work. When the figure 
with table pops up I change some values, then close the window and 
check a t2 variable.


If you really do things in this order, you kill the uicontrol that
can't be addressed anymore, and you should get an error message:

--> t2=matrix(ut.string,size(table))
at line 7 of function %h_e ( SCI\modules\graphics\macros\%h_e.sci 
line 19 )


get: The handle is not or no more valid.

and then yes, t2 has not been updated.


The table t2 is unchanged. Maybe I am doing something wrong?

Iza


___
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


[Scilab-users] scilab mkdir and UNC path support

2018-10-29 Thread Antoine Monmayrant
Hi all,

The lack of support for UNC path in scilab is a real issue in our lab (UNC path 
are Windows paths that looks like \\server\dir1\subdir1\).
In particular it breaks atomsInstall for all the Windows users here as our home 
dir is mounted as a UNC path: \\servername\username.
I found the main issue (I think) in mkdir() at line 88:
subdirs = strsplit(NewDirectory, ["/" "\"]);
obviously, splitting the  path to the new directory is not going to give you 
something nice with a UNC path that starts with "\\".
I have an idea to workaround this limitation, but there is still something I 
don't get in the logic of mkdir(): this splitting is associated with 
"bAddFirstDirSep", a variable that tries to detect something wrong with the 
first directory separator.
Could anyone more knowledgeable than me explain why it is there and what is is 
doing?
I would not want to reintroduce some bug with my modified version...

Thanks,

Antoine

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


Re: [Scilab-users] uicontrol TABLE

2018-10-29 Thread Samuel Gougeon

Le 29/10/2018 à 16:02, Samuel Gougeon a écrit :

Le 29/10/2018 à 15:46, Izabela Wójcik-Grząba a écrit :
I have 6.01 version and changing values doesn't work. When the figure 
with table pops up I change some values, then close the window and 
check a t2 variable. 


Aa, you might also have considered that after
t2=matrix(ut.string,size(table))
your t2 always points to the table's content, and that each modification 
in the table updates it automatically.
It's the case for ut.string, but not for t2. To update t2, you still 
have to rerun

t2=matrix(ut.string,size(table))

Samuel

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


Re: [Scilab-users] uicontrol TABLE

2018-10-29 Thread Samuel Gougeon

Le 29/10/2018 à 15:46, Izabela Wójcik-Grząba a écrit :
I have 6.01 version and changing values doesn't work. When the figure 
with table pops up I change some values, then close the window and 
check a t2 variable. 


If you really do things in this order, you kill the uicontrol that can't 
be addressed anymore, and you should get an error message:


--> t2=matrix(ut.string,size(table))
at line 7 of function %h_e ( SCI\modules\graphics\macros\%h_e.sci 
line 19 )


get: The handle is not or no more valid.

and then yes, t2 has not been updated.


The table t2 is unchanged. Maybe I am doing something wrong?

Iza 


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


Re: [Scilab-users] uicontrol TABLE

2018-10-29 Thread Izabela Wójcik-Grząba
I have 6.01 version and changing values doesn't work. When the figure 
with table pops up I change some values, then close the window and check 
a t2 variable. The table t2 is unchanged. Maybe I am doing something 
wrong?



Iza



W dniu 29.10.2018 14:00, Samuel Gougeon napisał(a):

Le 18/10/2018 à 12:47, Izabela Wójcik-Grząba a écrit :

.../...
I use a version from this site which should work:
http://www.scilab.org/fr/development/nightly_builds/master


I am not able to reproduce the Scilab 5 bug with the NB master for 
Windows.

For me, changing values works as expected.

Samuel

___
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] uicontrol TABLE

2018-10-29 Thread Samuel Gougeon

Le 18/10/2018 à 12:47, Izabela Wójcik-Grząba a écrit :

.../...
I use a version from this site which should work:
http://www.scilab.org/fr/development/nightly_builds/master


I am not able to reproduce the Scilab 5 bug with the NB master for Windows.
For me, changing values works as expected.

Samuel

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


Re: [Scilab-users] uicontrol TABLE

2018-10-29 Thread Samuel Gougeon

Hello Izabela,

Le 18/10/2018 à 12:47, Izabela Wójcik-Grząba a écrit :

Hello,

Sorry for returning to the topic of editting uicontrol Table but I still
don't know how it works. When I change the data in a Help example (code
below) the resulting table t2 doesn't change.


You are likely using Scilab 5.5.2. This bug is fixed in Scilab 6.

Regards
Samuel

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


Re: [Scilab-users] Tall Array in Scilab

2018-10-29 Thread CRETE Denis
Hello,
Did you try to increase the stack size with stacksize() ; it may be a simple 
solution if the array is not too big.
Otherwise, I generally recourse to the Scilab function unix_g(), with a string 
parameter calling one of the basic OS functions (e.g. sed or grep) to reduce 
the size of the array before processing with SciLab.
HTH
Denis

[@@ THALES GROUP INTERNAL @@]

Unité Mixte de Physique CNRS / THALES
1 Avenue Augustin Fresnel
91767 Palaiseau CEDEx - France
Tel : +33 (0)1 69 41 58 52 Fax : +33 (0)1 69 41 58 78
e-mail :
 denis.cr...@thalesgroup.com 

http://www.trt.thalesgroup.com/ump-cnrs-thales
http://www.research.thalesgroup.com

De : users [mailto:users-boun...@lists.scilab.org] De la part de FIXED-TERM 
Nacer Mohamed Ikbal (ETAS/ESY)
Envoyé : vendredi 26 octobre 2018 15:26
À : users@lists.scilab.org
Objet : [Scilab-users] Tall Array in Scilab

Hello M'ms and Sirs,

Do we have the concept of Tall Array in scilab, because I need to read a big 
chunk of data and it may get worst and worst soon and scilab is crushing 
because it cannot handle it.
The concept of Tall Array is explained it here 
https://www.mathworks.com/help/matlab/import_export/tall-arrays.html


So if anyone can help it will be very helpful ?

Thanks in advances.

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