Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jeremy Freeman
    @freeman-lab
    if that fails, it's the same error you were seeing above
    if it succeeds, you should be good to go!
    Nikita Vladimirov
    @nvladimus
    yes, it does fail after I changed the bash profile:
    ```
    from PIL import Image
    
    ---------------------------------------------------------------------------
    ImportError                               Traceback (most recent call last)
    <ipython-input-3-0f6709e38f49> in <module>()
    ----> 1 from PIL import Image
    
    build/bdist.linux-x86_64/egg/PIL/Image.py in <module>()
    
    build/bdist.linux-x86_64/egg/PIL/_imaging.py in <module>()
    
    build/bdist.linux-x86_64/egg/PIL/_imaging.py in __bootstrap__()
    
    ImportError: /groups/ahrens/home/vladimirovn/.python-eggs/Pillow-3.0.0-py2.7-linux-x86_64.egg-tmp/PIL/_imaging.so: undefined symbol: TIFFSetWarningHandlerExt
    Jeremy Freeman
    @freeman-lab
    ah you might need to source ~/.bash_profile
    to be safe, log out and log back in
    Nikita Vladimirov
    @nvladimus
    aha, now it worked
    it loaded TIFs, too. You rock, @freeman-lab
    Jeremy Freeman
    @freeman-lab
    great! :+1:
    don't ask why that fixed it =)
    Nikita Vladimirov
    @nvladimus
    I will not understand anything anyway. Just a magic, I understand.
    thank you!
    can I somehow swap dimension(0) and dimension(1) in the data? Importing TIFs changed X and Y dimensions in the data, from binary format.
    Davis Bennett
    @d-v-b
    I use im_data.applyValues(lambda v: v.swapaxes(0,1))
    this probably indicates a bug in the stack - tif conversion
    or a missing feature, at least
    Nikita Vladimirov
    @nvladimus
    the resulting TIFs are OK, from the standpoint of opening them in FiJi
    Davis Bennett
    @d-v-b
    so maybe it's an issue on the thunder side?
    Nikita Vladimirov
    @nvladimus
    swapping seems to occur in the loadImages function
    it's OK, not a big deal.
    Davis Bennett
    @d-v-b
    @nvladimus unrelated, but this is a useful illustration of lots of the magic commands for the notebook
    you might find %%writefile useful -- it writes a cell to a file
    Nikita Vladimirov
    @nvladimus
    ok, thanks. Related, swapping axes does not work very well, because dat.dims stay unchanged after applyValues.
    Davis Bennett
    @d-v-b
    hm i think I call im_dat.first() before checking dims
    see if that gets the dims right
    Nikita Vladimirov
    @nvladimus
    no, f#ck it, I am staying with binary format :(
    Davis Bennett
    @d-v-b
    haha ok
    Nikita Vladimirov
    @nvladimus
    otherwise I will have to run 2 separate code versions, 'before' and 'after' changing to TIF, which will be a mess.
    Jeremy Freeman
    @freeman-lab
    ah, sorry about this! i'll look carefully at it in the updates were doing, it's possible in the current codebase there's a dimension / axis swap problem between tif and binary
    Nikita Vladimirov
    @nvladimus
    oh, that would solve it. I'll stick with binary for now, but will try it again after Thunder update. Thanks for feedback!
    Jeremy Freeman
    @freeman-lab
    i'll add some new unit tests that do things like load from binary as a -> save as tif -> load as tif -> b and make sure a == b
    k sounds great
    Vinay
    @Zzoey
    1.png
    @freeman-lab I don't understand this error. I couldn't find out. I am using spark 1.0.0 which is pre built with Hadoop 1 only
    Thanks in Advance :smile: