File tree Expand file tree Collapse file tree
Core/src/ca/uqac/lif/labpal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public abstract class Laboratory implements OwnershipManager
9898 /**
9999 * The revision version number
100100 */
101- private static final transient int s_revisionVersionNumber = 5 ;
101+ private static final transient int s_revisionVersionNumber = 6 ;
102102
103103 /**
104104 * The set of experiments this lab has access to
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ <h2 class="text-only">Main menu</h2>
1818< div id ="footer ">
1919< div >
2020< div id ="logo-container "> < a href ="https://liflab.github.io/labpal " title ="LabPal {%VERSION_STRING%} "> < span id ="labpal-logo "> < span > LabPal {%VERSION_STRING%}</ span > </ span > </ a > </ div >
21- < div id ="footer-text "> © 2014-2019
21+ < div id ="footer-text "> © 2014-2020
2222< a href ="http://liflab.ca "> Laboratoire d'informatique formelle</ a > ,
2323Université du Québec à Chicoutimi.</ div >
2424</ div >
Original file line number Diff line number Diff line change 2121import java .util .HashMap ;
2222import java .util .List ;
2323import java .util .Map ;
24-
24+ import ca . uqac . lif . json . JsonBoolean ;
2525import ca .uqac .lif .json .JsonElement ;
2626import ca .uqac .lif .json .JsonList ;
2727import ca .uqac .lif .json .JsonNumber ;
@@ -238,6 +238,10 @@ public static PrimitiveValue jsonToPrimitive(JsonElement e)
238238 {
239239 return PrimitiveValue .getInstance (((JsonString ) e ).stringValue ());
240240 }
241+ if (e instanceof JsonBoolean )
242+ {
243+ return PrimitiveValue .getInstance (((JsonBoolean ) e ).boolValue ());
244+ }
241245 return null ;
242246
243247 }
Original file line number Diff line number Diff line change 11/*
22 LabPal, a versatile environment for running experiments on a computer
3- Copyright (C) 2015-2017 Sylvain Hallé
3+ Copyright (C) 2015-2020 Sylvain Hallé
44
55 This program is free software: you can redistribute it and/or modify
66 it under the terms of the GNU General Public License as published by
2121import java .util .List ;
2222
2323import ca .uqac .lif .json .JsonNull ;
24+ import ca .uqac .lif .json .JsonNumber ;
2425import ca .uqac .lif .labpal .Experiment ;
2526import ca .uqac .lif .labpal .provenance .ExperimentValue ;
2627import ca .uqac .lif .mtnp .table .Table ;
@@ -113,8 +114,22 @@ public TempTable getDataTable(boolean temporary)
113114 continue ;
114115 }
115116 TableEntry te = new TableEntry ();
116- te .put (m_captionX , x );
117- te .put (m_captionY , y );
117+ if (x instanceof JsonNumber )
118+ {
119+ te .put (m_captionX , ((JsonNumber ) x ).numberValue ());
120+ }
121+ else
122+ {
123+ te .put (m_captionX , x );
124+ }
125+ if (y instanceof JsonNumber )
126+ {
127+ te .put (m_captionY , ((JsonNumber ) y ).numberValue ());
128+ }
129+ else
130+ {
131+ te .put (m_captionY , y );
132+ }
118133 te .addDependency (m_captionX , new ExperimentValue (pair .getExperimentX (), m_parameter ));
119134 te .addDependency (m_captionY , new ExperimentValue (pair .getExperimentY (), m_parameter ));
120135 table .add (te );
Original file line number Diff line number Diff line change 2626 <name >LabPal</name >
2727
2828 <!-- The project's version number -->
29- <version >2.11.5 </version >
29+ <version >2.11.6 </version >
3030
3131 <!-- The project's author. Currently this only
3232 shows up in the footer of the Javadoc documentation. -->
9494 <name >MTNP</name >
9595 <classname >ca.uqac.lif.mtnp.table.Table</classname >
9696 <files >
97- <zip >https://github.com/liflab/mtnp/releases/download/v0.1.10 -alpha/mtnp-0.1.10 -alpha.zip</zip >
97+ <zip >https://github.com/liflab/mtnp/releases/download/v0.1.11 -alpha/mtnp-0.1.11 -alpha.zip</zip >
9898 </files >
9999 <bundle >true</bundle >
100100 </dependency >
You can’t perform that action at this time.
0 commit comments