Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Docker and test errors related to conda, imageio_ffmpeg, and loci.formats #380

Merged
merged 5 commits into from
Dec 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ USER pims
# Set up the initial conda environment
COPY --chown=pims:pims environment.yml /src/environment.yml
WORKDIR /src
RUN conda config --prepend envs_dirs $HOME/.conda/envs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for these, @jthetzel Build is working for me again locally 👍

RUN conda config --prepend pkgs_dirs $HOME/.conda/pkgs
RUN conda env create -f environment.yml \
&& conda clean -tipsy

Expand Down
6 changes: 5 additions & 1 deletion pims/bioformats.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,11 @@ def __init__(self, filename, meta=True, java_memory='512m',
# patch for issue with ND2 files and the Chunkmap implemented in 5.4.0
# See https://github.com/openmicroscopy/bioformats/issues/2955
# circumventing the reserved keyword 'in'
mo = getattr(loci.formats, 'in').DynamicMetadataOptions()
try:
mo = getattr(loci.formats, 'in').DynamicMetadataOptions()
except AttributeError:
# Attribute name conflict causes mangling of `in` to `in_`
mo = getattr(loci.formats, 'in_').DynamicMetadataOptions()
mo.set('nativend2.chunkmap', 'False') # Format Bool as String
self.rdr.setMetadataOptions(mo)

Expand Down
4 changes: 4 additions & 0 deletions pims/imageio_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
imageio = None
try:
import imageio_ffmpeg
try:
imageio_ffmpeg.get_ffmpeg_exe()
except RuntimeError:
imageio_ffmpeg = None
except ImportError:
imageio_ffmpeg = None

Expand Down