These are chat archives for thunder-project/thunder

15th
Apr 2015
Richard A Hofer
@rhofour
Apr 15 2015 22:56
@freeman-lab I'm a little confused why the keys generated from makeExample are 3D. Is there any reason they're not simply 1D?
Jeremy Freeman
@freeman-lab
Apr 15 2015 23:33
@rhofour no particular reason, agree that 1D would be simpler, thanks for pointing this out! want to create an issue, and maybe submit a PR with a fix?
Jeremy Freeman
@freeman-lab
Apr 15 2015 23:42
@ahwillia looks really close, we should make sure it works for more than 2d data, i think the following would work
[self.imgSlices[i].start - self.padImgSlices[i].start for i in range(1, len(self.origShape))]
[self.padImgSlices[i].stop - self.imgSlices[i].stop for i in range(1, len(self.origShape))]
Jeremy Freeman
@freeman-lab
Apr 15 2015 23:49
the first gives you the start padding in x and y (and z), and the second gives you end padding in x and y (and z)