This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
testtest
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
created dockerfile
zolfa-add_slices_loading
Jim Rybarski
10 years ago
parent
c2cf7958e3
commit
26ff38d039
3 changed files
with
28 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+24
-0
Dockerfile
+3
-1
nd2reader/reader.py
+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
numpy
as
np
import
struct
@ -280,4 +282,4 @@ class Nd2FileReader(object):
res
[
name
]
.
append
(
value
)
x
=
data
.
read
(
)
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
(
name
=
"
nd2reader
"
,
packages
=
find_packages
(
)
,
version
=
"
0.9.7
"
,
install_requires
=
[
'
numpy
'
,
]
,
version
=
"
0.9.7
"
)
Write
Preview
Loading…
Cancel
Save