Skip to content

Commit

Permalink
Refactor the nd2 source to use the nd2 library.
Browse files Browse the repository at this point in the history
This should be more consistent than the nd2reader library.

The only downside of this is that the nd2 module is Python 3.7 or later.
  • Loading branch information
manthey committed Mar 14, 2022
1 parent f120116 commit b262aec
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 188 deletions.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import itertools
import os
import sys

from setuptools import setup

Expand All @@ -21,14 +22,17 @@
'gdal': ['large-image-source-gdal'],
'mapnik': ['large-image-source-mapnik'],
'multi': ['large-image-source-multi'],
'nd2': ['large-image-source-nd2'],
'ometiff': ['large-image-source-ometiff'],
'openjpeg': ['large-image-source-openjpeg'],
'openslide': ['large-image-source-openslide'],
'pil': ['large-image-source-pil'],
'test': ['large-image-source-test'],
'tiff': ['large-image-source-tiff'],
}
if sys.version_info >= (3, 7):
sources.update({
'nd2': ['large-image-source-nd2'],
})
extraReqs.update(sources)
extraReqs['sources'] = list(set(itertools.chain.from_iterable(sources.values())))
extraReqs['all'] = list(set(itertools.chain.from_iterable(extraReqs.values())))
Expand Down
Loading

0 comments on commit b262aec

Please sign in to comment.