Skip to content

Commit 8c06ca2

Browse files
committed
Update to MTNP dependency
1 parent 50c8062 commit 8c06ca2

5 files changed

Lines changed: 27 additions & 8 deletions

File tree

Source/Core/src/ca/uqac/lif/labpal/Laboratory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

Source/Core/src/ca/uqac/lif/labpal/server/resource/footer.inc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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">&copy; 2014-2019
21+
<div id="footer-text">&copy; 2014-2020
2222
<a href="http://liflab.ca">Laboratoire d'informatique formelle</a>,
2323
Universit&eacute; du Qu&eacute;bec &agrave; Chicoutimi.</div>
2424
</div>

Source/Core/src/ca/uqac/lif/labpal/table/ExperimentTable.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import java.util.HashMap;
2222
import java.util.List;
2323
import java.util.Map;
24-
24+
import ca.uqac.lif.json.JsonBoolean;
2525
import ca.uqac.lif.json.JsonElement;
2626
import ca.uqac.lif.json.JsonList;
2727
import 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
}

Source/Core/src/ca/uqac/lif/labpal/table/VersusTable.java

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
@@ -21,6 +21,7 @@
2121
import java.util.List;
2222

2323
import ca.uqac.lif.json.JsonNull;
24+
import ca.uqac.lif.json.JsonNumber;
2425
import ca.uqac.lif.labpal.Experiment;
2526
import ca.uqac.lif.labpal.provenance.ExperimentValue;
2627
import 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);

Source/config.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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. -->
@@ -94,7 +94,7 @@
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>

0 commit comments

Comments
 (0)