Skip to content

Commit

Permalink
Add files
Browse files Browse the repository at this point in the history
  • Loading branch information
langmm committed Jun 9, 2023
1 parent f5957e9 commit 78b33d8
Show file tree
Hide file tree
Showing 21 changed files with 2,627 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*~
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
857 changes: 857 additions & 0 deletions Display.ipynb

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions TODO.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Create plant geometry with more leaves
* Add slide on results when comparing different geometries
* Add images of plant geometries to slides
* Push and verify binder works
11 changes: 11 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CiS2021-hackathon-environment
channels:
- conda-forge
dependencies:
- python=3.9
- yggdrasil=1.6.3
- trimesh
- networkx
- pygments
- notebook
- ipykernel
5 changes: 5 additions & 0 deletions launch_local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -e
source /opt/conda/etc/profile.d/conda.sh
conda activate CiS2021-hackathon-environment
jupyter notebook --no-browser --ip=0.0.0.0 --NotebookApp.token='' --NotebookApp.password='' --allow-root
39 changes: 39 additions & 0 deletions local.Docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM jupyter/minimal-notebook

SHELL ["/bin/bash", "--login", "-c"]

# Create output director
RUN mkdir "output"

# Create the environment:
COPY environment.yml .
RUN conda env create --file environment.yml

# Make RUN commands use the new environment:
RUN source /opt/conda/etc/profile.d/conda.sh && \
conda activate CiS2021-hackathon-environment && \
yggconfig && \
ygginfo --verbose && \
yggcompile c cpp fortran

RUN echo "source activate CiS2021-hackathon-environment" > ~/.bashrc

VOLUME /home/${NB_USER}/work

# Copy the files
WORKDIR /home/${NB_USER}/work
COPY input /home/${NB_USER}/work/input
COPY meshes /home/${NB_USER}/work/meshes
COPY models /home/${NB_USER}/work/models
COPY yamls /home/${NB_USER}/work/yamls
COPY solutions /home/${NB_USER}/work/solutions
COPY *.ipynb /home/${NB_USER}/work
RUN mkdir "/home/${NB_USER}/work/output"
RUN fix-permissions "/home/${NB_USER}/work/output" && fix-permissions "/home/${NB_USER}/work/models"
COPY launch_local.sh .

# /home/${NB_USER}/work


EXPOSE 8888
ENTRYPOINT ["/bin/bash", "launch_local.sh"]
Loading

0 comments on commit 78b33d8

Please sign in to comment.