mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-14 14:32:37 +02:00
Fixed leaky comprehension behaviour for Py3
This commit is contained in:
parent
6d2393ae90
commit
3e25098710
1 changed files with 2 additions and 0 deletions
|
|
@ -74,6 +74,8 @@ class MRD(BayesianGPLVMMiniBatch):
|
||||||
|
|
||||||
self.logger.debug("creating observable arrays")
|
self.logger.debug("creating observable arrays")
|
||||||
self.Ylist = [ObsAr(Y) for Y in Ylist]
|
self.Ylist = [ObsAr(Y) for Y in Ylist]
|
||||||
|
#The next line is a fix for Python 3. It replicates the python 2 behaviour from the above comprehension
|
||||||
|
Y = Ylist[-1]
|
||||||
|
|
||||||
if Ynames is None:
|
if Ynames is None:
|
||||||
self.logger.debug("creating Ynames")
|
self.logger.debug("creating Ynames")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue