Last active
November 13, 2017 19:58
-
-
Save charlesreid1/f37b5c5761fa1a5c89cbde17ffcdeaef to your computer and use it in GitHub Desktop.
Comparing simple test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(testenv) root@ae3529a7c667:/# python pimstest.py | |
(testenv) root@ae3529a7c667:/# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This installs pims via pip | |
wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh; | |
chmod +x miniconda.sh | |
./miniconda.sh -b -p /home/travis/mc | |
export PATH=/home/travis/mc/bin:$PATH | |
conda update --yes conda | |
DEPS="pip numpy slicerator scipy pillow matplotlib scikit-image jinja2 av tifffile libtiff jpype1 ipython sphinx sphinx_rtd_theme numpydoc" | |
conda update --yes conda | |
conda config --append channels conda-forge | |
export TRAVIS_PYTHON_VERSION="3.6" | |
conda create -n testenv --yes $DEPS nose python=$TRAVIS_PYTHON_VERSION | |
source activate testenv | |
git clone https://github.com/soft-matter/trackpy-examples.git | |
pip install pims | |
python pimstest.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(testenv) root@6c1f22544037:/# python pimstest.py | |
Exception ignored in: <object repr() failed> | |
Traceback (most recent call last): | |
File "/home/travis/mc/envs/testenv/lib/python3.6/site-packages/PIMS-0.4+30.g9cb60ce-py3.6.egg/pims/image_sequence.py", line 106, in __del__ | |
self.close() | |
File "/home/travis/mc/envs/testenv/lib/python3.6/site-packages/PIMS-0.4+30.g9cb60ce-py3.6.egg/pims/image_sequence.py", line 101, in close | |
if self._is_zipfile: | |
AttributeError: 'ImageSequence' object has no attribute '_is_zipfile' | |
Traceback (most recent call last): | |
File "pimstest.py", line 2, in <module> | |
frames = pims.ImageSequence('/trackpy-examples/sample_data/bulk_water/*.png', as_grey=True) | |
TypeError: __init__() got an unexpected keyword argument 'as_grey' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This installs pims directly from source | |
wget http://repo.continuum.io/miniconda/Miniconda-3.5.5-Linux-x86_64.sh -O miniconda.sh; | |
chmod +x miniconda.sh | |
./miniconda.sh -b -p /home/travis/mc | |
export PATH=/home/travis/mc/bin:$PATH | |
conda update --yes conda | |
DEPS="numpy slicerator scipy pillow matplotlib scikit-image jinja2 av tifffile libtiff jpype1 ipython sphinx sphinx_rtd_theme numpydoc" DEPSPIP="moviepy imageio" | |
conda update --yes conda | |
conda config --append channels conda-forge | |
export TRAVIS_PYTHON_VERSION="3.6" | |
conda create -n testenv --yes $DEPS nose python=$TRAVIS_PYTHON_VERSION | |
source activate testenv | |
git clone https://github.com/soft-matter/trackpy-examples.git | |
git clone https://github.com/soft-matter/pims.git | |
cd pims | |
python setup.py install | |
cd ../ | |
python pimstest.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pims | |
frames = pims.ImageSequence('/trackpy-examples/sample_data/bulk_water/*.png', as_grey=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment