Browse Source

created dockerfile

zolfa-add_slices_loading
Jim Rybarski 10 years ago
parent
commit
26ff38d039
3 changed files with 28 additions and 5 deletions
  1. +24
    -0
      Dockerfile
  2. +3
    -1
      nd2reader/reader.py
  3. +1
    -4
      setup.py

+ 24
- 0
Dockerfile View File

@ -0,0 +1,24 @@
FROM ubuntu
MAINTAINER Jim Rybarski <jim@rybarski.com>
RUN apt-get update && apt-get install -y \
gcc \
gfortran \
libblas-dev \
liblapack-dev \
libatlas-dev \
tk \
tk-dev \
libpng12-dev \
python \
python-dev \
python-pip \
libfreetype6-dev \
python-skimage
RUN pip install numpy
RUN pip install --upgrade scikit-image
COPY . /opt/nd2reader
WORKDIR /opt/nd2reader
RUN python setup.py install

+ 3
- 1
nd2reader/reader.py View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
import array import array
import numpy as np import numpy as np
import struct import struct
@ -280,4 +282,4 @@ class Nd2FileReader(object):
res[name].append(value) res[name].append(value)
x = data.read() x = data.read()
assert not x, "skip %d %s" % (len(x), repr(x[:30])) assert not x, "skip %d %s" % (len(x), repr(x[:30]))
return res
return res

+ 1
- 4
setup.py View File

@ -3,8 +3,5 @@ from setuptools import setup, find_packages
setup( setup(
name="nd2reader", name="nd2reader",
packages=find_packages(), packages=find_packages(),
version="0.9.7",
install_requires=[
'numpy',
],
version="0.9.7"
) )

Loading…
Cancel
Save