Fixed leaky comprehension behaviour for Py3

This commit is contained in:
Mike Croucher 2015-03-06 13:06:42 +00:00
parent 6d2393ae90
commit 3e25098710

View file

@ -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")