These are chat archives for thunder-project/thunder

3rd
Aug 2015
marta-grilo
@marta-grilo
Aug 03 2015 15:39
@freeman-lab thanks for your help but your code does not seem to work :/
everything works up until the imgs = tsc.loadImagesFromArray(dat)
I keep getting this error " Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: ThunderContext instance has no attribute 'loadImagesFromArray' ". Everything else works.
Jeremy Freeman
@freeman-lab
Aug 03 2015 16:03
@marta-grilo ah! sorry bout that, that function is in a newer, unreleased version (still being tested), here’s a workaround in the meantime:
replace this line imgs = tsc.loadImagesFromArray(dat)
with the following
from thunder.rdds.fileio.imagesloader import ImagesLoader
imgs = ImagesLoader(tsc._sc).fromArrays([d for d in dat], npartitions=1)
i know that’s slightly awkward, that’s why we’re adding the new function =)
but that should work for you in the meantime