Re: [Scilab-users] Covid19 model

2020-04-30 Thread Claus Futtrup

Hi Stéphane

Thank you for showing me how to work ODE.

P.S. about Corona modeling, the model by Risbo is nice in that you can 
implement a lockdown of some sort. It's a simple one-step lockdown, 
where you have to tune the R-value ... in reality each geographic area 
is different, related to how much of a lockdown is executed, how dense 
the population is, etc.


Cheers,
Claus

On 4/30/2020 4:51 PM, Stéphane Mottelet wrote:


Hi Clauss,

Just modify the following lines :

t1  =  0:0.1:60;
y1  =  ode(y0,  0,  t1,  odefun);  // [t1,y1] = ode45(@odefun,[0 60],y0); // 
run 1st scernario
idx=[3:6];
scf();
a  =  gca();
plot(Begin+t1,y1(idx,:),'-');  // 
semilogy(Begin+t1,y1(:,idx),'-','LineWidth',3) And you will be fine. ode() 
needs a vector of time values and the output is oriented transposed w.r.t 
Matlab output.

S.

Le 30/04/2020 à 16:40, Claus Futtrup a écrit :
functiondydt=odefun(t, y)iftreproductive rate after 
lockdownendA=[00-delta*R*y(1)/Npop000;...0-gamdelta*R*y(1)/Npop000;...0gam-delta000;...00delta*(1-Fhosp)000;...00delta*Fhosp0-1/Thosp0;...00delta*R*y(1)/Npop000];dydt=A*y;endBegin=datenum(2020,02,20,0,0,0);// 
begin dateDlock=datenum(2020,03,12,0,0,0);// date of 
lockdowndays=Dlock-Begin;R0=2.6;// inital R valuegam=1/3;// gamma, 
the inverse of average latent timedelta=1/5;// inv time constant 
which infectious people either recover or enter hospitalFhosp=0.16;// 
fraction of recovering people going to hospitalThosp=14;// average 
time of hospitalisationNpop=6e6;// total initial population of 
sensitivey0=[Npop;50;50;0;0;0];// [S E I R Hosp ] intial 
cond.t1=0:60;y1=ode(y0,0,60,odefun);// [t1,y1] = ode45(@odefun,[0 
60],y0); // run 1st 
scernarioidx=[3:6];scf();a=gca();plot(Begin+t1,y1(:,idx),'-');// 
semilogy(Begin+t1,y1(:,idx),'-','LineWidth',3)a.log_flags="nln";xlabel('Date')ylabel('Number 
of cases')xgrid();// ax=gca;// ax.YLim=[10 
max(max(y2(:,idx)))];xtitle({'Danish Corona lock down on 20.03.12, vs 
14 days later','R goes from 2.6 to 0.6 at 
lockdown'});legend('Infected','Recovered','Hospitalised','Total Cases');

--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

___
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: Corona modelling

2020-04-30 Thread Stéphane Mottelet

Hi,

My experience with the SIR model (not SEIR) is that the estimated 
parameters are very sensitive to the initial condition of the Infected 
pool. Hence, this initial condition should be also considered as a 
parameter to be identified. However, the main problem (at least with 
France data) is that fitting Infected and Recovered (cured or dead 
people) together gives not satisfactory results.


My two cents...

S.

Le 30/04/2020 à 18:44, Chin Luh Tan a écrit :
Just notice that this email was stuck due to the image attached was 
too large, and notice the new post by Claus with the SEIR model from 
Matlab, perhaps Scilabers could make the model more realistic together.


CL

 Forwarded message 
From: Chin Luh Tan >
To: "Users mailing list for Scilab">

Date: Thu, 30 Apr 2020 00:03:46 +0800
Subject: Re: [Scilab-users] Corona modelling
 Forwarded message 

Hi,

I just modified Stephane's nice GUI to make it able to load the
real world data from internet so that we could overlapped the data
to the SIR model to study the effect of locked-down, and the
meaning of the coefficients.

From some reading from the internet, the "Susceptible" population
is kind of like difficult to determined, and some suggested to use
"current cases" as "optimum model" assuming the condition is
recovering. As or the "optional model", the "total population" is
being used.

While "beta" is the transmission coefficient, "gamma" the recovery
factor, can anyone explained more details, perhaps in layman term,
how to relate these  parameters to one country condition, such as
the relationship between gamma with the number of days (what days
is it referring to), beta "actual meaning" in layman term, and
perhaps link with some "technical term" the newspaper always seen
on papers?

I attached the GUI, which will load 3 sets of data from Johns
Hopkins Github,

(https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series

)
which could be download using following 3 lines directly from the
Scilab:


--> fn =

getURL('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_global.csv

')
--> fn =

getURL('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv

')
--> fn =

getURL('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_recovered_global.csv

')

and run the GUI as attached.




rgds,
CL


 On Mon, 30 Mar 2020 14:13:40 +0800 *Stéphane Mottelet
mailto:stephane.motte...@utc.fr>>*
wrote 




Hello Heinz,

Here is an interactive version (made for my children last
week...) :

/// Confinement COVID-19 !/
/// Stephane MOTTELET, UTC/
/// Tue Mar 24 08:55:03 CET 2020/
/// /
function  *dydt*=_sir_(*t*, *y*, *bet*, *gam*, *N*)
 *dydt*=[-*bet*/*N***y*(1)**y*(2)
*bet*/*N***y*(1)**y*(2)-*gam***y*(2)   
*gam***y*(2)];

endfunction

function  _draw_(*bet*, *gam*)
 t=0:1:360;
 N=6e7;
 if  exists("gcbo")  &&  is_handle_valid(gcbo)
 sb  =  gcbo;
 if  sb.tag=="beta"
 *bet*=sb.value;
 *gam*=findobj("gamma").value
 else
 *gam*=sb.value;
 *bet*=findobj("beta").value
 end
 y=ode('stiff',[N-1;1;0],0,t,list(_sir_,*bet*,*gam*,N));
 curves  =  findobj("curves");
 curves.children(1).data(:,2)=y(3,:);
 curves.children(2).data(:,2)=y(2,:);
 curves.children(3).data(:,2)=y(1,:);
 else
 

[Scilab-users] Fwd: Re: Corona modelling

2020-04-30 Thread Chin Luh Tan
Just notice that this email was stuck due to the image attached was too large, 
and notice the new post by Claus with the SEIR model from Matlab, perhaps 
Scilabers could make the model more realistic together.

CL

 Forwarded message 
From: Chin Luh Tan 
To: "Users mailing list for Scilab"
Date: Thu, 30 Apr 2020 00:03:46 +0800
Subject: Re: [Scilab-users] Corona modelling
 Forwarded message 


Hi, 

I just modified Stephane's nice GUI to make it able to load the real world data 
from internet so that we could overlapped the data to the SIR model to study 
the effect of locked-down, and the meaning of the coefficients. 

>From some reading from the internet, the "Susceptible" population is kind of 
>like difficult to determined, and some suggested to use "current cases" as 
>"optimum model" assuming the condition is recovering. As or the "optional 
>model", the "total population" is being used.

While "beta" is the transmission coefficient, "gamma" the recovery factor, can 
anyone explained more details, perhaps in layman term, how to relate these  
parameters to one country condition, such as the relationship between gamma 
with the number of days (what days is it referring to), beta "actual meaning" 
in layman term, and perhaps link with some "technical term" the newspaper 
always seen on papers? 

I attached the GUI, which will load 3 sets of data from Johns Hopkins Github, 
(https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series)
which could be download using following 3 lines directly from the Scilab:


--> fn = 
getURL('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_global.csv')
--> fn = 
getURL('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv')

--> fn = 
getURL('https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_recovered_global.csv')

and run the GUI as attached.




rgds,
CL


 On Mon, 30 Mar 2020 14:13:40 +0800 Stéphane Mottelet 
 wrote 











Hello Heinz,

Here is an interactive version (made for my children last
  week...) :

// Confinement COVID-19 !
// Stephane MOTTELET, UTC
// Tue Mar 24 08:55:03 CET 2020
// 
function dydt=sir(t, y, bet, gam, N)
dydt=[-bet/N*y(1)*y(2)
   bet/N*y(1)*y(2)-gam*y(2)  
   gam*y(2)];
endfunction

function draw(bet, gam)
t=0:1:360;
N=6e7;
if exists("gcbo") && is_handle_valid(gcbo)
sb = gcbo;
if sb.tag=="beta"
bet=sb.value;
gam=findobj("gamma").value
else
gam=sb.value;
bet=findobj("beta").value
end
y=ode('stiff',[N-1;1;0],0,t,list(sir,bet,gam,N));
curves = findobj("curves");
curves.children(1).data(:,2)=y(3,:);
curves.children(2).data(:,2)=y(2,:);
curves.children(3).data(:,2)=y(1,:);
else
y=ode('stiff',[N-1;1;0],0,t,list(sir,bet,gam,N));
scf(0)
clf
plot(t,y)
gce().tag="curves";
gce().children.thickness=2;
legend("Susceptible","Infected","Recovered",-1)

sb1 = uicontrol("style","slider",...
"units","normalized",...
"Position", [0.85,0.2,0.05,0.48],...
"BackgroundColor", [1,1,1],...
"Callback_Type",12,...
"sliderstep",[1/1000,1/10],...
"min",0.15,"max",0.3,"value",bet,...
"Callback","draw","tag","beta");

uicontrol("style","text",...
"string","$\beta$",...
"units","normalized",...
"Position", [0.85,0.125,0.05,0.08],...
"BackgroundColor", [1,1,1],...
"HorizontalAlignment","center");

sb1 = uicontrol("style","slider",...
"units","normalized",...
"Position", [0.90,0.2,0.05,0.48],...
"BackgroundColor", [1,1,1],...
"Callback_Type",12,...
"sliderstep",[1/1000,1/10],...
"min",0,"max",1/15,"value",gam,...
"Callback","draw","tag","gamma");

uicontrol("style","text",...
"string","$\gamma$",...
"units","normalized",...
"Position", [0.9,0.125,0.05,0.08],...
"BackgroundColor", [1,1,1],...
"HorizontalAlignment","center");

end
end

clf

draw(0.3,1/15)



Le 30/03/2020 à 02:14, Heinz Nabielek a
  écrit :

Colleagues:

is there an straightforward Scilab approach for solving the three coupled 
nonlinear differential equations of first order given by the Standard Model of 
Epidemics?


S= number Susceptible:  S'=-aSI
I=  number Infected:I'=aSI - bI
R= number Recovered:R'=bI
whereby 'a' is the 

Re: [Scilab-users] Covid19 model

2020-04-30 Thread Stéphane Mottelet

Hi Clauss,

Just modify the following lines :

t1  =  0:0.1:60;
y1  =  ode(y0,  0,  t1,  odefun);  // [t1,y1] = ode45(@odefun,[0 60],y0); // 
run 1st scernario
idx=[3:6];
scf();
a  =  gca();
plot(Begin+t1,y1(idx,:),'-');  // 
semilogy(Begin+t1,y1(:,idx),'-','LineWidth',3) And you will be fine. ode() 
needs a vector of time values and the output is oriented transposed w.r.t 
Matlab output.

S.

Le 30/04/2020 à 16:40, Claus Futtrup a écrit :
functiondydt=odefun(t, y)iftrate after 
lockdownendA=[00-delta*R*y(1)/Npop000;...0-gamdelta*R*y(1)/Npop000;...0gam-delta000;...00delta*(1-Fhosp)000;...00delta*Fhosp0-1/Thosp0;...00delta*R*y(1)/Npop000];dydt=A*y;endBegin=datenum(2020,02,20,0,0,0);// 
begin dateDlock=datenum(2020,03,12,0,0,0);// date of 
lockdowndays=Dlock-Begin;R0=2.6;// inital R valuegam=1/3;// gamma, the 
inverse of average latent timedelta=1/5;// inv time constant which 
infectious people either recover or enter hospitalFhosp=0.16;// 
fraction of recovering people going to hospitalThosp=14;// average 
time of hospitalisationNpop=6e6;// total initial population of 
sensitivey0=[Npop;50;50;0;0;0];// [S E I R Hosp ] intial 
cond.t1=0:60;y1=ode(y0,0,60,odefun);// [t1,y1] = ode45(@odefun,[0 
60],y0); // run 1st 
scernarioidx=[3:6];scf();a=gca();plot(Begin+t1,y1(:,idx),'-');// 
semilogy(Begin+t1,y1(:,idx),'-','LineWidth',3)a.log_flags="nln";xlabel('Date')ylabel('Number 
of cases')xgrid();// ax=gca;// ax.YLim=[10 
max(max(y2(:,idx)))];xtitle({'Danish Corona lock down on 20.03.12, vs 
14 days later','R goes from 2.6 to 0.6 at 
lockdown'});legend('Infected','Recovered','Hospitalised','Total Cases');


--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

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


[Scilab-users] Covid19 model

2020-04-30 Thread Claus Futtrup

Hi Scilabers

On 17. April I sent an email, but I think it wasn't released to the 
mailing list, I only find it online here:


http://mailinglists.scilab.org/Scilab-users-Covid19-model-td4040626.html

Here's the email again (without attachment, see above link if you'd like 
to view the attachment)


A friend (Lars Risbo) published some MATLAB code in LinkedIn for 
simulating the infection with a company lockdown after some time. I 
figured I'd try to convert it to Scilab.


The code usesODE45and I'm not sure that I understand how to convert this 
MATLAB code to Scilab. I hope you can explain what I need to do to make 
the code work. Some of the original MATLAB code is found in the comments.


// covid19risbo.sce SEIRsim1// 
Susceptible-Exposed-Infectious-Recovered (SEIR)functiondydt=odefun(t, 
y)iftlockdownendA=[00-delta*R*y(1)/Npop000;...0-gamdelta*R*y(1)/Npop000;...0gam-delta000;...00delta*(1-Fhosp)000;...00delta*Fhosp0-1/Thosp0;...00delta*R*y(1)/Npop000];dydt=A*y;endBegin=datenum(2020,02,20,0,0,0);// 
begin dateDlock=datenum(2020,03,12,0,0,0);// date of 
lockdowndays=Dlock-Begin;R0=2.6;// inital R valuegam=1/3;// gamma, the 
inverse of average latent timedelta=1/5;// inv time constant which 
infectious people either recover or enter hospitalFhosp=0.16;// fraction 
of recovering people going to hospitalThosp=14;// average time of 
hospitalisationNpop=6e6;// total initial population of 
sensitivey0=[Npop;50;50;0;0;0];// [S E I R Hosp ] intial 
cond.t1=0:60;y1=ode(y0,0,60,odefun);// [t1,y1] = ode45(@odefun,[0 
60],y0); // run 1st 
scernarioidx=[3:6];scf();a=gca();plot(Begin+t1,y1(:,idx),'-');// 
semilogy(Begin+t1,y1(:,idx),'-','LineWidth',3)a.log_flags="nln";xlabel('Date')ylabel('Number 
of cases')xgrid();// ax=gca;// ax.YLim=[10 
max(max(y2(:,idx)))];xtitle({'Danish Corona lock down on 20.03.12, vs 14 
days later','R goes from 2.6 to 0.6 at 
lockdown'});legend('Infected','Recovered','Hospitalised','Total Cases');


P.S. Attached a simple graph of what the output should look like (file 
covid19risbo.jpg < 50 kb), at least partially - because I deleted an 
alternative case with a later lockdown date = dashed lines.


Best regards,

Claus

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


Re: [Scilab-users] Really headless figure generation in scilab

2020-04-30 Thread Antoine Monmayrant

Hello Stéphane,


Sadly, after some testings, it doe not seem to work for me on the 
machine I connect to with ssh (see transcript below).
The connection is done with bare 'ssh' and not 'ssh -X' (contrary to 
what I wrote in a previous email) and your combination of env variables 
still results in a bunch of errors...



Cheers,

Antoine

//

ssh remotemachine
SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 
_JAVA_OPTIONS='-Djava.awt.headless=true' scilab-adv-cli

Error: unable to open display
Picked up _JAVA_OPTIONS: 
-Djava.class.path=/usr/share/java/flexdock.jar:/usr/share/java/skinlf.jar:/usr/share/java/looks.jar:/usr/share/java/commons-logging.jar:/usr/share/java/jhall.jar:/usr/share/java/lucene-core-4.10.4.jar:/usr/share/java/lucene-analyzers-common-4.10.4.jar:/usr/share/java/lucene-queryparser-4.10.4.jar:/usr/share/maven-repo/org/freehep/freehep-util/debian/freehep-util-debian.jar:/usr/share/maven-repo/org/freehep/freehep-io/debian/freehep-io-debian.jar:/usr/share/maven-repo/org/freehep/freehep-graphicsio/debian/freehep-graphicsio-debian.jar:/usr/share/java/freehep-graphicsio-emf-2.1.jar:/usr/share/java/freehep-graphics2d-2.1.1.jar:/usr/share/java/jrosetta-API.jar:/usr/share/java/jrosetta-engine-1.0.4.jar:/usr/share/java/jgraphx.jar:/usr/share/java/jogl2.jar:/usr/share/java/gluegen2-rt.jar:/usr/share/java/jeuclid-core.jar:/usr/share/java/jlatexmath-fop-1.0.7.jar:/usr/share/java/fop.jar:/usr/share/java/saxon.jar:/usr/share/java/batik.jar:/usr/share/java/xml-apis-ext.jar:/usr/share/java/commons-io.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/avalon-framework.jar:/usr/share/java/jlatexmath-1.0.7.jar:/usr/share/java/ecj.jar:/usr/share/java/javax.activation.jar:/usr/share/java/jaxb-runtime.jar:/usr/share/scilab/modules/graphic_objects/jar/org.scilab.modules.graphic_objects.jar:/usr/share/scilab/modules/javasci/jar/org.scilab.modules.javasci.jar:/usr/share/scilab/modules/completion/jar/org.scilab.modules.completion.jar:/usr/share/scilab/modules/preferences/jar/org.scilab.modules.preferences.jar:/usr/share/scilab/modules/scirenderer/jar/scirenderer.jar:/usr/share/scilab/modules/graph/jar/org.scilab.modules.graph.jar:/usr/share/scilab/modules/renderer/jar/org.scilab.modules.renderer.jar:/usr/share/scilab/modules/ui_data/jar/org.scilab.modules.ui_data.jar:/usr/share/scilab/modules/localization/jar/org.scilab.modules.localization.jar:/usr/share/scilab/modules/scinotes/jar/org.scilab.modules.scinotes.jar:/usr/share/scilab/modules/types/jar/org.scilab.modules.types.jar:/usr/share/scilab/modules/history_browser/jar/org.scilab.modules.history_browser.jar:/usr/share/scilab/modules/commons/jar/org.scilab.modules.commons.jar:/usr/share/scilab/modules/console/jar/org.scilab.modules.console.jar:/usr/share/scilab/modules/action_binding/jar/org.scilab.modules.action_binding.jar:/usr/share/scilab/modules/history_manager/jar/org.scilab.modules.history_manager.jar:/usr/share/scilab/modules/core/jar/org.scilab.modules.core.jar:/usr/share/scilab/modules/external_objects_java/jar/org.scilab.modules.external_objects_java.jar:/usr/share/scilab/modules/xcos/jar/org.scilab.modules.xcos.jar:/usr/share/scilab/modules/graphic_export/jar/org.scilab.modules.graphic_export.jar:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar:/usr/share/scilab/modules/gui/jar/org.scilab.modules.gui.jar:/usr/share/scilab/modules/helptools/jar/scilab_ru_RU_help.jar:/usr/share/scilab/modules/helptools/jar/scilab_images.jar:/usr/share/scilab/modules/helptools/jar/org.scilab.modules.helptools.jar:/usr/share/scilab/modules/helptools/jar/scilab_en_US_help.jar: 
-Djava.awt.headless=true

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.scilab.modules.jvm.LibraryPath 
(file:/usr/share/scilab/modules/jvm/jar/org.scilab.modules.jvm.jar) to 
field java.lang.ClassLoader.sys_paths
WARNING: Please consider reporting this to the maintainers of 
org.scilab.modules.jvm.LibraryPath
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations

WARNING: All illegal access operations will be denied in a future release
Could not access to the Main Scilab Class:
Exception in thread "main" java.lang.ExceptionInInitializerError
    at org.scilab.modules.localization.Messages.gettext(Unknown Source)
    at 
org.scilab.modules.commons.xml.XConfiguration.(Unknown Source)

    at org.scilab.modules.core.Scilab.(Unknown Source)
Caused by: java.lang.NullPointerException
    at 
java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2646)

    at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:830)
    at java.base/java.lang.System.loadLibrary(System.java:1870)
    at org.scilab.modules.localization.MessagesJNI.(Unknown 
Source)

    ... 3 more

Scilab cannot create Scilab Java Main-Class (we have not been able to 
find the main Scilab class. Check if the Scilab and thirdparty packages 
are 

Re: [Scilab-users] Really headless figure generation in scilab

2020-04-30 Thread Stéphane Mottelet

Hi,

Le 30/04/2020 à 09:22, Clément David a écrit :

Hello,

Thanks for sharing the info Stéphane, it is documented on the scilab binary 
help page, on 
https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/help.scilab.org/docs/6.1.0/en_US/scilab.html
 . However, this might not be clear enough.


Yes. Particularly, I don't see any mention of

_JAVA_OPTIONS='-Djava.awt.headless=true'

which is mandatory (and should be added on-the-fly by the Scilab 
script), I mean SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1 are not enough.


S.


  Maybe adding your usage as an example can help?

Thanks,

--
Clément


-Original Message-
From: users  On Behalf Of Stéphane Mottelet
Sent: Wednesday, April 29, 2020 3:33 PM
To: users@lists.scilab.org
Subject: Re: [Scilab-users] Really headless figure generation in scilab

I don't think so. This is the way Scilab is launched to build the documentation.

S.

Le 29/04/2020 à 15:28, Antoine Monmayrant a écrit :

On 29/04/2020 15:18, Stéphane Mottelet wrote:

SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1
_JAVA_OPTIONS='-Djava.awt.headless=true'


Thanks Stéphane for this dark magic!
It works.
Is this documented somewhere?


Antoine

___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists
.scilab.org/mailman/listinfo/users


--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable Département
Génie des Procédés Industriels Sorbonne Universités - Université de Technologie
de Compiègne CS 60319, 60203 Compiègne cedex Tel : +33(0)344234688
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.utc.fr/~mottelet

___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users


--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

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


Re: [Scilab-users] Really headless figure generation in scilab

2020-04-30 Thread Clément David
Hello,

Thanks for sharing the info Stéphane, it is documented on the scilab binary 
help page, on https://help.scilab.org/docs/6.1.0/en_US/scilab.html . However, 
this might not be clear enough. Maybe adding your usage as an example can help?

Thanks,

--
Clément

> -Original Message-
> From: users  On Behalf Of Stéphane Mottelet
> Sent: Wednesday, April 29, 2020 3:33 PM
> To: users@lists.scilab.org
> Subject: Re: [Scilab-users] Really headless figure generation in scilab
> 
> I don't think so. This is the way Scilab is launched to build the 
> documentation.
> 
> S.
> 
> Le 29/04/2020 à 15:28, Antoine Monmayrant a écrit :
> >
> > On 29/04/2020 15:18, Stéphane Mottelet wrote:
> >>
> >> SCI_DISABLE_TK=1 SCI_JAVA_ENABLE_HEADLESS=1
> >> _JAVA_OPTIONS='-Djava.awt.headless=true'
> >
> >
> > Thanks Stéphane for this dark magic!
> > It works.
> > Is this documented somewhere?
> >
> >
> > Antoine
> >
> > ___
> > users mailing list
> > users@lists.scilab.org
> > https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists
> > .scilab.org/mailman/listinfo/users
> >
> 
> --
> Stéphane Mottelet
> Ingénieur de recherche
> EA 4297 Transformations Intégrées de la Matière Renouvelable Département
> Génie des Procédés Industriels Sorbonne Universités - Université de 
> Technologie
> de Compiègne CS 60319, 60203 Compiègne cedex Tel : +33(0)344234688
> http://www.utc.fr/~mottelet
> 
> ___
> 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