Skip to content

Commit 1e3b983

Browse files
committed
fix: Fix matplotlib cache and import entrypoint
1 parent fde8a9f commit 1e3b983

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

docker/downloader.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ WORKDIR /app
1010
COPY src/downloader/requirements.txt /tmp/requirements.txt
1111
RUN pip install --no-cache-dir -r /tmp/requirements.txt
1212

13-
ENV MPLCONFIGDIR=/app/.cache/matplotlib
13+
ENV XDG_CACHE_HOME=/tmp/.cache
14+
ENV MPLCONFIGDIR=/tmp/.cache/matplotlib
1415

1516
# Code and configs are mounted at runtime via docker-compose volumes:
1617
# - ./src/downloader -> /app

src/simulator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .diffraction_generator import DiffractionGenerator
1+
__all__ = ["diffraction_generator", "simulation_worker"]

0 commit comments

Comments
 (0)